diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-11-12 18:29:43 +0100 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2021-11-12 18:29:43 +0100 |
commit | a9872e1478af10ca335cca32abd248e87e103c02 (patch) | |
tree | 4cc5005debf054d56e729c51fb46685c031544b4 /test/functional/feature_taproot.py | |
parent | c9dd5c8d6e59e27af98e99d2844d6ead8eec3162 (diff) | |
download | bitcoin-a9872e1478af10ca335cca32abd248e87e103c02.tar.xz |
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.
Diffstat (limited to 'test/functional/feature_taproot.py')
-rwxr-xr-x | test/functional/feature_taproot.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/functional/feature_taproot.py b/test/functional/feature_taproot.py index 50a25ee1ef..5f90e49de1 100755 --- a/test/functional/feature_taproot.py +++ b/test/functional/feature_taproot.py @@ -1240,7 +1240,6 @@ class TaprootTest(BitcoinTestFramework): block.vtx.append(tx) block.hashMerkleRoot = block.calc_merkle_root() witness and add_witness_commitment(block) - block.rehash() block.solve() block_response = node.submitblock(block.serialize().hex()) if err_msg is not None: @@ -1488,7 +1487,6 @@ class TaprootTest(BitcoinTestFramework): # Mine a block with the transaction block = create_block(tmpl=self.nodes[1].getblocktemplate(NORMAL_GBT_REQUEST_PARAMS), txlist=[rawtx]) add_witness_commitment(block) - block.rehash() block.solve() assert_equal(None, self.nodes[1].submitblock(block.serialize().hex())) self.sync_blocks() |