mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-13 07:23:21 +02:00
scripted-diff: Use new create_block height option
-BEGIN VERIFY SCRIPT-
# Replace single-arg create_coinbase calls ...
# ... followed by ntime arg
sed --in-place --regexp-extended 's/create_block\((.+), create_coinbase\(([^,]+)\), /create_block(\1, height=\2, ntime=/g' $( git grep -l 'create_block(' )
# ... not followed by any other args
sed --in-place --regexp-extended 's/create_block\((.+), create_coinbase\(([^,]+)\)\)/create_block(\1, height=\2)/g' $( git grep -l 'create_block(' )
-END VERIFY SCRIPT-
This commit is contained in:
@@ -176,7 +176,7 @@ class ExampleTest(BitcoinTestFramework):
|
||||
# Use the blocktools functionality to manually build a block.
|
||||
# Calling the generate() rpc is easier, but this allows us to exactly
|
||||
# control the blocks and transactions.
|
||||
block = create_block(self.tip, create_coinbase(height+1), self.block_time)
|
||||
block = create_block(self.tip, height=height+1, ntime=self.block_time)
|
||||
block.solve()
|
||||
block_message = msg_block(block)
|
||||
# Send message is used to send a P2P message to the node over our P2PInterface
|
||||
|
||||
Reference in New Issue
Block a user