@@ -122,6 +122,9 @@ def run_test(self):
122
122
info = wallet .getwalletinfo ()
123
123
assert info ['private_keys_enabled' ]
124
124
assert info ['keypoolsize' ] > 0
125
+ # Use addmultisigaddress (see #18075)
126
+ address_18075 = wallet .addmultisigaddress (1 , ["0296b538e853519c726a2c91e61ec11600ae1390813a627c66fb8be7947be63c52" , "037211a824f55b505228e4c3d5194c1fcfaa15a456abdf37f9b9d97a4040afc073" ], "" , "legacy" )["address" ]
127
+ assert wallet .getaddressinfo (address_18075 )["solvable" ]
125
128
126
129
# w1_v18: regular wallet, created with v0.18
127
130
node_v18 .createwallet (wallet_name = "w1_v18" )
@@ -319,7 +322,7 @@ def run_test(self):
319
322
hdkeypath = info ["hdkeypath" ]
320
323
pubkey = info ["pubkey" ]
321
324
322
- # Copy the wallet to the last Bitcoin Core version and open it:
325
+ # Copy the 0.17 wallet to the last Bitcoin Core version and open it:
323
326
node_v17 .unloadwallet ("u1_v17" )
324
327
shutil .copytree (
325
328
os .path .join (node_v17_wallets_dir , "u1_v17" ),
@@ -331,5 +334,14 @@ def run_test(self):
331
334
descriptor = "wpkh([" + info ["hdmasterfingerprint" ] + hdkeypath [1 :] + "]" + pubkey + ")"
332
335
assert_equal (info ["desc" ], descsum_create (descriptor ))
333
336
337
+ # Copy the 0.19 wallet to the last Bitcoin Core version and open it:
338
+ shutil .copytree (
339
+ os .path .join (node_v19_wallets_dir , "w1_v19" ),
340
+ os .path .join (node_master_wallets_dir , "w1_v19" )
341
+ )
342
+ node_master .loadwallet ("w1_v19" )
343
+ wallet = node_master .get_wallet_rpc ("w1_v19" )
344
+ assert wallet .getaddressinfo (address_18075 )["solvable" ]
345
+
334
346
if __name__ == '__main__' :
335
347
BackwardsCompatibilityTest ().main ()
0 commit comments