mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-17 17:02:43 +00:00
qa: remove unnecessary tx removal from compact block
The error being checked here is BLOCK_MUTATED, as returned by IsBlockMutated() in FillBlock(). Dropping the fourth transaction from the block is unnecessary and would make testing of other block validation failures in following commits more verbose.
This commit is contained in:
parent
321984705d
commit
d6c37b28a7
@ -709,7 +709,6 @@ class CompactBlocksTest(BitcoinTestFramework):
|
||||
utxo = self.utxos[0]
|
||||
|
||||
block = self.build_block_with_transactions(node, utxo, 5)
|
||||
del block.vtx[3]
|
||||
block.hashMerkleRoot = block.calc_merkle_root()
|
||||
# Drop the coinbase witness but include the witness commitment.
|
||||
add_witness_commitment(block)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user