mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-24 21:31:13 +02: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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user