|
|
@ -46,12 +46,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.")
|
|
|
|