Merge bitcoin/bitcoin#28412: test: remove unused variables in p2p_invalid_block

3eb03803c4111d09c63550a6a6c09afbe3430bf6 test: remove unused variables in `p2p_invalid_block` (brunoerg)

Pull request description:

ACKs for top commit:
  stickies-v:
    ACK 3eb03803c4111d09c63550a6a6c09afbe3430bf6

Tree-SHA512: eadae1eb323e5562d1ea0aed43ebf0145f0fdbb6cd6d4646bbf1ca89f384820e7b9cb69f0bb04a949e9f8983a879aee8387d6f7ac3d4e4ea027f8892e656fb98
This commit is contained in:
fanquake 2023-09-07 16:10:07 +01:00 committed by pasta
parent 43b88315e1
commit 6ad6f2f28d
No known key found for this signature in database
GPG Key ID: E2F3D7916E722D38

View File

@ -40,12 +40,10 @@ class InvalidBlockRequestTest(BitcoinTestFramework):
self.log.info("Create a new block with an anyone-can-spend coinbase") self.log.info("Create a new block with an anyone-can-spend coinbase")
height = 1
block = create_block(tip, create_coinbase(height), block_time) block = create_block(tip, create_coinbase(height), block_time)
block.solve() block.solve()
# Save the coinbase for later # Save the coinbase for later
block1 = block block1 = block
tip = block.sha256
peer.send_blocks_and_test([block1], node, success=True) peer.send_blocks_and_test([block1], node, success=True)
self.log.info("Mature the block.") self.log.info("Mature the block.")