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:
Antoine Poinsot
2025-07-28 17:16:20 -04:00
parent 321984705d
commit d6c37b28a7

View File

@@ -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)