mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 18:22:57 +02:00
test: remove bare CBlockHeader .rehash()/.calc_sha256() calls
Since the previous commit, CBlockHeader/CBlock object calls to the methods `.rehash()` and `.calc_sha256()` are effectively no-ops if the returned value is not used, so we can just remove them.
This commit is contained in:
@@ -661,7 +661,6 @@ class FullBlockTest(BitcoinTestFramework):
|
||||
while b47.sha256 <= target:
|
||||
# Rehash nonces until an invalid too-high-hash block is found.
|
||||
b47.nNonce += 1
|
||||
b47.rehash()
|
||||
self.send_blocks([b47], False, force_send=True, reject_reason='high-hash', reconnect=True)
|
||||
|
||||
self.log.info("Reject a block with a timestamp >2 hours in the future")
|
||||
|
||||
Reference in New Issue
Block a user