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:
1 parent
0716382c20
commit
8b09cc350a
16 files changed
-32
No files matched your search
@@ -36,7 +36,6 @@ class P2PCompactBlocksBlocksOnly(BitcoinTestFramework):
|
||||
blockhash = self.generate(self.nodes[2], 1, sync_fun=self.no_op)[0]
|
||||
block_hex = self.nodes[2].getblock(blockhash=blockhash, verbosity=0)
|
||||
block = from_hex(CBlock(), block_hex)
|
||||
block.rehash()
|
||||
return block
|
||||
|
||||
def run_test(self):
|
||||
|
||||
Reference in new issue
Block a user