mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
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:
parent
43b88315e1
commit
6ad6f2f28d
@ -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.")
|
||||||
|
Loading…
Reference in New Issue
Block a user