@@ -463,7 +463,7 @@ async def validate_block_body(
463
463
False ,
464
464
block .foliage_transaction_block .timestamp ,
465
465
)
466
- removal_coin_records [new_unspent .name () ] = new_unspent
466
+ removal_coin_records [new_unspent .name ] = new_unspent
467
467
else :
468
468
# This check applies to both coins created before fork (pulled from coin_store),
469
469
# and coins created after fork (additions_since_fork)
@@ -485,17 +485,17 @@ async def validate_block_body(
485
485
if unspent .spent == 1 and unspent .spent_block_index <= fork_info .fork_height :
486
486
# Check for coins spent in an ancestor block
487
487
return Err .DOUBLE_SPEND
488
- removal_coin_records [unspent .name () ] = unspent
488
+ removal_coin_records [unspent .name ] = unspent
489
489
else :
490
- look_in_fork .append (unspent .name () )
490
+ look_in_fork .append (unspent .name )
491
491
492
492
if log_coins and len (look_in_fork ) > 0 :
493
493
log .info ("%d coins spent after fork" , len (look_in_fork ))
494
494
495
495
if len (unspent_records ) != len (removals_from_db ):
496
496
# some coins could not be found in the DB. We need to find out which
497
497
# ones and look for them in additions_since_fork
498
- found : set [bytes32 ] = {u .name () for u in unspent_records }
498
+ found : set [bytes32 ] = {u .name for u in unspent_records }
499
499
for rem in removals_from_db :
500
500
if rem in found :
501
501
continue
@@ -553,7 +553,7 @@ async def validate_block_body(
553
553
554
554
# 20. Verify that removed coin puzzle_hashes match with calculated puzzle_hashes
555
555
for unspent in removal_coin_records .values ():
556
- if unspent .coin .puzzle_hash != removals_puzzle_dic [unspent .name () ]:
556
+ if unspent .coin .puzzle_hash != removals_puzzle_dic [unspent .name ]:
557
557
return Err .WRONG_PUZZLE_HASH
558
558
559
559
# 21. Verify conditions
0 commit comments