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