Skip to content

Commit 799b20e

Browse files
committed
remaining couple
1 parent eaa47bb commit 799b20e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

chia/_tests/blockchain/test_blockchain_transactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async def test_basic_blockchain_tx(
9292
for coin in added_coins:
9393
unspent = await full_node_1.coin_store.get_coin_record(coin.name())
9494
assert unspent is not None
95-
assert not unspent.spent()
95+
assert not unspent.spent
9696
assert not unspent.coinbase
9797

9898
@pytest.mark.anyio

chia/consensus/block_body_validation.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ async def validate_block_body(
462462
False,
463463
block.foliage_transaction_block.timestamp,
464464
)
465-
removal_coin_records[new_unspent.name()] = new_unspent
465+
removal_coin_records[new_unspent.name] = new_unspent
466466
else:
467467
# This check applies to both coins created before fork (pulled from coin_store),
468468
# and coins created after fork (additions_since_fork)
@@ -484,17 +484,17 @@ async def validate_block_body(
484484
if unspent.spent == 1 and unspent.spent_block_index <= fork_info.fork_height:
485485
# Check for coins spent in an ancestor block
486486
return Err.DOUBLE_SPEND
487-
removal_coin_records[unspent.name()] = unspent
487+
removal_coin_records[unspent.name] = unspent
488488
else:
489-
look_in_fork.append(unspent.name())
489+
look_in_fork.append(unspent.name)
490490

491491
if log_coins and len(look_in_fork) > 0:
492492
log.info("%d coins spent after fork", len(look_in_fork))
493493

494494
if len(unspent_records) != len(removals_from_db):
495495
# some coins could not be found in the DB. We need to find out which
496496
# 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}
498498
for rem in removals_from_db:
499499
if rem in found:
500500
continue
@@ -552,7 +552,7 @@ async def validate_block_body(
552552

553553
# 20. Verify that removed coin puzzle_hashes match with calculated puzzle_hashes
554554
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]:
556556
return Err.WRONG_PUZZLE_HASH
557557

558558
# 21. Verify conditions

0 commit comments

Comments
 (0)