55from cancel_token import CancelToken
66
77from eth .beacon .types .attestation_records import AttestationRecord
8- from eth .beacon .types .attestation_signed_data import AttestationSignedData
8+ from eth .beacon .types .attestation_data import AttestationData
99from eth .db .atomic import AtomicDB
1010from eth .beacon .db .chain import BeaconChainDB
1111from eth .beacon .types .blocks import BaseBeaconBlock
@@ -302,18 +302,18 @@ async def test_send_single_attestation(request, event_loop):
302302 bob .add_subscriber (msg_buffer )
303303
304304 attestation_record = AttestationRecord (
305- data = AttestationSignedData (
305+ data = AttestationData (
306306 slot = 0 ,
307307 shard = 1 ,
308- block_hash = ZERO_HASH32 ,
309- cycle_boundary_hash = ZERO_HASH32 ,
308+ beacon_block_hash = ZERO_HASH32 ,
309+ epoch_boundary_hash = ZERO_HASH32 ,
310310 shard_block_hash = ZERO_HASH32 ,
311- last_crosslink_hash = ZERO_HASH32 ,
311+ latest_crosslink_hash = ZERO_HASH32 ,
312312 justified_slot = 0 ,
313313 justified_block_hash = ZERO_HASH32 ,
314314 ),
315- attester_bitfield = b"\x00 \x00 \x00 " ,
316- poc_bitfield = b"\x00 \x00 \x00 " ,
315+ participation_bitfield = b"\x00 \x00 \x00 " ,
316+ custody_bitfield = b"\x00 \x00 \x00 " ,
317317 )
318318
319319 alice .sub_proto .send_attestation_records ((attestation_record ,))
@@ -331,18 +331,18 @@ async def test_send_multiple_attestations(request, event_loop):
331331
332332 attestation_records = tuple (
333333 AttestationRecord (
334- data = AttestationSignedData (
334+ data = AttestationData (
335335 slot = 0 ,
336- shard = shard ,
337- block_hash = ZERO_HASH32 ,
338- cycle_boundary_hash = ZERO_HASH32 ,
336+ shard = 1 ,
337+ beacon_block_hash = ZERO_HASH32 ,
338+ epoch_boundary_hash = ZERO_HASH32 ,
339339 shard_block_hash = ZERO_HASH32 ,
340- last_crosslink_hash = ZERO_HASH32 ,
340+ latest_crosslink_hash = ZERO_HASH32 ,
341341 justified_slot = 0 ,
342342 justified_block_hash = ZERO_HASH32 ,
343343 ),
344- attester_bitfield = b"\x00 \x00 \x00 " ,
345- poc_bitfield = b"\x00 \x00 \x00 " ,
344+ participation_bitfield = b"\x00 \x00 \x00 " ,
345+ custody_bitfield = b"\x00 \x00 \x00 " ,
346346 ) for shard in range (10 )
347347 )
348348
0 commit comments