File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -164,13 +164,13 @@ def run_test(self):
164
164
self .tip = int (self .nodes [0 ].getbestblockhash (), 16 )
165
165
self .block_time = self .nodes [0 ].getblock (self .nodes [0 ].getbestblockhash ())['time' ] + 1
166
166
167
- height = 1
167
+ height = self . nodes [ 0 ]. getblockcount ()
168
168
169
169
for i in range (10 ):
170
170
# Use the mininode and blocktools functionality to manually build a block
171
171
# Calling the generate() rpc is easier, but this allows us to exactly
172
172
# control the blocks and transactions.
173
- block = create_block (self .tip , create_coinbase (height ), self .block_time )
173
+ block = create_block (self .tip , create_coinbase (height + 1 ), self .block_time )
174
174
block .solve ()
175
175
block_message = msg_block (block )
176
176
# Send message is used to send a P2P message to the node over our P2PInterface
You can’t perform that action at this time.
0 commit comments