Skip to content

Commit

Permalink
Add check for peak not none in test
Browse files Browse the repository at this point in the history
  • Loading branch information
emlowe committed Jul 24, 2024
1 parent 9173620 commit 6ac100b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chia/_tests/blockchain/test_blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -3632,6 +3632,7 @@ async def test_reorg_new_ref(empty_blockchain: Blockchain, bt: BlockTools) -> No
elif i == 19:
# same height as peak decide by iterations
peak = b.get_peak()
assert peak is not None
# same height as peak should be ADDED_AS_ORPHAN if block.total_iters >= peak.total_iters
assert block.total_iters < peak.total_iters
expected = AddBlockResult.NEW_PEAK
Expand Down

0 comments on commit 6ac100b

Please sign in to comment.