@@ -25,7 +25,7 @@ class WalletTest(BitcoinTestFramework):
2525 def set_test_params (self ):
2626 self .num_nodes = 4
2727 self .extra_args = [[
28- "-acceptnonstdtxn=1" ,
28+ "-acceptnonstdtxn=1" , "-walletrejectlongchains=0"
2929 ]] * self .num_nodes
3030 self .setup_clean_chain = True
3131 self .supports_cli = False
@@ -142,7 +142,7 @@ def run_test(self):
142142 self .nodes [2 ].lockunspent (False , [unspent_0 ], True )
143143
144144 # Restarting the node with the lock written to the wallet should keep the lock
145- self .restart_node (2 )
145+ self .restart_node (2 , [ "-walletrejectlongchains=0" ] )
146146 assert_raises_rpc_error (- 8 , "Invalid parameter, output already locked" , self .nodes [2 ].lockunspent , False , [unspent_0 ])
147147
148148 # Unloading and reloading the wallet with a persistent lock should keep the lock
@@ -568,7 +568,7 @@ def run_test(self):
568568 self .log .info ("Test -reindex" )
569569 self .stop_nodes ()
570570 # set lower ancestor limit for later
571- self .start_node (0 , ['-reindex' , "-limitancestorcount=" + str (chainlimit )])
571+ self .start_node (0 , ['-reindex' , "-walletrejectlongchains=0" , "- limitancestorcount=" + str (chainlimit )])
572572 self .start_node (1 , ['-reindex' , "-limitancestorcount=" + str (chainlimit )])
573573 self .start_node (2 , ['-reindex' , "-limitancestorcount=" + str (chainlimit )])
574574 # reindex will leave rpc warm up "early"; Wait for it to finish
0 commit comments