@@ -325,7 +325,7 @@ def test_reorgs(self):
325
325
dusty_tx , _ = self .create_ephemeral_dust_package (tx_version = 3 )
326
326
assert_raises_rpc_error (- 26 , "min relay fee not met" , self .nodes [0 ].sendrawtransaction , dusty_tx ["hex" ])
327
327
328
- block_res = self .nodes [0 ]. rpc . generateblock ( self .wallet .get_address (), [dusty_tx ["hex" ]])
328
+ block_res = self .generateblock ( self . nodes [0 ], self .wallet .get_address (), [dusty_tx ["hex" ]], sync_fun = self . no_op )
329
329
self .nodes [0 ].invalidateblock (block_res ["hash" ])
330
330
assert_mempool_contents (self , self .nodes [0 ], expected = [dusty_tx ["tx" ]], sync = False )
331
331
@@ -335,7 +335,7 @@ def test_reorgs(self):
335
335
assert_raises_rpc_error (- 26 , "min relay fee not met" , self .nodes [0 ].sendrawtransaction , sweep_tx ["hex" ])
336
336
337
337
# Mine the sweep then re-org, the sweep will not make it back in due to spend checks
338
- block_res = self .nodes [0 ]. rpc . generateblock ( self .wallet .get_address (), [dusty_tx ["hex" ], sweep_tx ["hex" ]])
338
+ block_res = self .generateblock ( self . nodes [0 ], self .wallet .get_address (), [dusty_tx ["hex" ], sweep_tx ["hex" ]], sync_fun = self . no_op )
339
339
self .nodes [0 ].invalidateblock (block_res ["hash" ])
340
340
assert_mempool_contents (self , self .nodes [0 ], expected = [dusty_tx ["tx" ]], sync = False )
341
341
@@ -344,7 +344,7 @@ def test_reorgs(self):
344
344
self .add_output_to_create_multi_result (sweep_tx_2 )
345
345
assert_raises_rpc_error (- 26 , "min relay fee not met" , self .nodes [0 ].sendrawtransaction , sweep_tx_2 ["hex" ])
346
346
347
- reconsider_block_res = self .nodes [0 ]. rpc . generateblock ( self .wallet .get_address (), [dusty_tx ["hex" ], sweep_tx_2 ["hex" ]])
347
+ reconsider_block_res = self .generateblock ( self . nodes [0 ], self .wallet .get_address (), [dusty_tx ["hex" ], sweep_tx_2 ["hex" ]], sync_fun = self . no_op )
348
348
self .nodes [0 ].invalidateblock (reconsider_block_res ["hash" ])
349
349
assert_mempool_contents (self , self .nodes [0 ], expected = [dusty_tx ["tx" ], sweep_tx_2 ["tx" ]], sync = False )
350
350
@@ -357,13 +357,13 @@ def test_reorgs(self):
357
357
358
358
self .log .info ("Test that ephemeral dust tx with fees or multi dust don't enter mempool via reorg" )
359
359
multi_dusty_tx , _ = self .create_ephemeral_dust_package (tx_version = 3 , num_dust_outputs = 2 )
360
- block_res = self .nodes [0 ]. rpc . generateblock ( self .wallet .get_address (), [multi_dusty_tx ["hex" ]])
360
+ block_res = self .generateblock ( self . nodes [0 ], self .wallet .get_address (), [multi_dusty_tx ["hex" ]], sync_fun = self . no_op )
361
361
self .nodes [0 ].invalidateblock (block_res ["hash" ])
362
362
assert_equal (self .nodes [0 ].getrawmempool (), [])
363
363
364
364
# With fee and one dust
365
365
dusty_fee_tx , _ = self .create_ephemeral_dust_package (tx_version = 3 , dust_tx_fee = 1 )
366
- block_res = self .nodes [0 ]. rpc . generateblock ( self .wallet .get_address (), [dusty_fee_tx ["hex" ]])
366
+ block_res = self .generateblock ( self . nodes [0 ], self .wallet .get_address (), [dusty_fee_tx ["hex" ]], sync_fun = self . no_op )
367
367
self .nodes [0 ].invalidateblock (block_res ["hash" ])
368
368
assert_equal (self .nodes [0 ].getrawmempool (), [])
369
369
0 commit comments