5
5
from cancel_token import CancelToken
6
6
7
7
from 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
9
9
from eth .db .atomic import AtomicDB
10
10
from eth .beacon .db .chain import BeaconChainDB
11
11
from eth .beacon .types .blocks import BaseBeaconBlock
@@ -302,18 +302,18 @@ async def test_send_single_attestation(request, event_loop):
302
302
bob .add_subscriber (msg_buffer )
303
303
304
304
attestation_record = AttestationRecord (
305
- data = AttestationSignedData (
305
+ data = AttestationData (
306
306
slot = 0 ,
307
307
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 ,
310
310
shard_block_hash = ZERO_HASH32 ,
311
- last_crosslink_hash = ZERO_HASH32 ,
311
+ latest_crosslink_hash = ZERO_HASH32 ,
312
312
justified_slot = 0 ,
313
313
justified_block_hash = ZERO_HASH32 ,
314
314
),
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 " ,
317
317
)
318
318
319
319
alice .sub_proto .send_attestation_records ((attestation_record ,))
@@ -331,18 +331,18 @@ async def test_send_multiple_attestations(request, event_loop):
331
331
332
332
attestation_records = tuple (
333
333
AttestationRecord (
334
- data = AttestationSignedData (
334
+ data = AttestationData (
335
335
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 ,
339
339
shard_block_hash = ZERO_HASH32 ,
340
- last_crosslink_hash = ZERO_HASH32 ,
340
+ latest_crosslink_hash = ZERO_HASH32 ,
341
341
justified_slot = 0 ,
342
342
justified_block_hash = ZERO_HASH32 ,
343
343
),
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 " ,
346
346
) for shard in range (10 )
347
347
)
348
348
0 commit comments