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:
Sebastian Falbesoner committed 2021-11-12 18:29:43 +01:00
1 parent c9dd5c8d6e
commit a9872e1478
11 files changed
-20

No files matched your search

-1
View File
@@ -598,7 +598,6 @@ def submit_block_with_tx(node, tx):
block_time = node.getblockheader(tip)["mediantime"] + 1
block = create_block(int(tip, 16), create_coinbase(height), block_time)
block.vtx.append(ctx)
block.rehash()
block.hashMerkleRoot = block.calc_merkle_root()
add_witness_commitment(block)
block.solve()