File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -163,13 +163,13 @@ def run_test (self):
163
163
164
164
txIdNotBroadcasted = self .nodes [0 ].sendtoaddress (self .nodes [2 ].getnewaddress (), 2 );
165
165
txObjNotBroadcasted = self .nodes [0 ].gettransaction (txIdNotBroadcasted )
166
- self .nodes [1 ].setgenerate ( True , 1 ) #mine a block, tx should not be in there
166
+ self .nodes [1 ].generate ( 1 ) #mine a block, tx should not be in there
167
167
self .sync_all ()
168
168
assert_equal (self .nodes [2 ].getbalance (), Decimal ('59.99800000' )); #should not be changed because tx was not broadcasted
169
169
170
170
#now broadcast from another node, mine a block, sync, and check the balance
171
171
self .nodes [1 ].sendrawtransaction (txObjNotBroadcasted ['hex' ])
172
- self .nodes [1 ].setgenerate ( True , 1 )
172
+ self .nodes [1 ].generate ( 1 )
173
173
self .sync_all ()
174
174
txObjNotBroadcasted = self .nodes [0 ].gettransaction (txIdNotBroadcasted )
175
175
assert_equal (self .nodes [2 ].getbalance (), Decimal ('61.99800000' )); #should not be
@@ -186,7 +186,7 @@ def run_test (self):
186
186
connect_nodes_bi (self .nodes ,0 ,2 )
187
187
sync_blocks (self .nodes )
188
188
189
- self .nodes [0 ].setgenerate ( True , 1 )
189
+ self .nodes [0 ].generate ( 1 )
190
190
sync_blocks (self .nodes )
191
191
192
192
#tx should be added to balance because after restarting the nodes tx should be broadcastet
You can’t perform that action at this time.
0 commit comments