Skip to content

Commit

Permalink
use try in wallet blockchain
Browse files Browse the repository at this point in the history
  • Loading branch information
almogdepaz committed Dec 9, 2024
1 parent 9c1eab1 commit 14c3339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chia/wallet/wallet_blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def contains_block(self, header_hash: bytes32, height: Optional[uint32] = None)
that we have added but no longer keep in memory.
"""
if height is None:
block_rec = self.block_record(header_hash)
block_rec = self.try_block_record(header_hash)
if block_rec is None:
return False
height = block_rec.height
Expand Down

0 comments on commit 14c3339

Please sign in to comment.