Skip to content

Commit 707e638

Browse files
committed
shrink diff
1 parent 3f918fd commit 707e638

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

chia/_tests/blockchain/test_blockchain.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3876,14 +3876,12 @@ async def test_chain_failed_rollback(empty_blockchain: Blockchain, bt: BlockTool
38763876
await _validate_and_add_block(b, block, expected_result=AddBlockResult.ADDED_AS_ORPHAN, fork_info=fork_info)
38773877

38783878
# Incorrectly set the height as spent in DB to trigger an error
3879-
coin_record_dbg1 = await b.consensus_store.get_coin_record(spend_bundle.coin_spends[0].coin.name())
3880-
print(f"{coin_record_dbg1}")
3879+
print(f"{await b.consensus_store.get_coin_record(spend_bundle.coin_spends[0].coin.name())}")
38813880
print(spend_bundle.coin_spends[0].coin.name())
38823881
# await b.consensus_store._set_spent([spend_bundle.coin_spends[0].coin.name()], 8)
38833882
async with b.consensus_store as writer:
38843883
await writer.rollback_to_block(2)
3885-
coin_record_dbg2 = await b.consensus_store.get_coin_record(spend_bundle.coin_spends[0].coin.name())
3886-
print(f"{coin_record_dbg2}")
3884+
print(f"{await b.consensus_store.get_coin_record(spend_bundle.coin_spends[0].coin.name())}")
38873885

38883886
fork_block = blocks_reorg_chain[10 - 1]
38893887
# fork_info = ForkInfo(fork_block.height, fork_block.height, fork_block.header_hash)

0 commit comments

Comments
 (0)