mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-11 12:03:04 +02:00
test: remove unnecessary block rehashing prior to solving
Solving a block involves continously rehashing it, i.e. any extra calls to rehash it before are not necessary and can be dropped.
This commit is contained in:
@@ -612,7 +612,6 @@ class FullBlockTest(BitcoinTestFramework):
|
||||
b45.nBits = 0x207fffff
|
||||
b45.vtx.append(non_coinbase)
|
||||
b45.hashMerkleRoot = b45.calc_merkle_root()
|
||||
b45.calc_sha256()
|
||||
b45.solve()
|
||||
self.block_heights[b45.sha256] = self.block_heights[self.tip.sha256] + 1
|
||||
self.tip = b45
|
||||
|
Reference in New Issue
Block a user