File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,6 +78,10 @@ def test_basic(self):
7878 assert_equal (old_change_addr_info ["ismine" ], True )
7979 assert_equal (old_change_addr_info ["hdkeypath" ], "m/44'/1'/0'/1/0" )
8080
81+ legacy_hdinfo = basic0 .dumphdinfo ()
82+ legacy_mnemonic = legacy_hdinfo ["mnemonic" ]
83+ legacy_mnemonic_passphrase = legacy_hdinfo ["mnemonicpassphrase" ]
84+
8185 # Note: migration could take a while.
8286 basic0 .migratewallet ()
8387
@@ -100,6 +104,10 @@ def test_basic(self):
100104 self .assert_addr_info_equal (addr_info , old_addr_info )
101105 self .assert_addr_info_equal (change_addr_info , old_change_addr_info )
102106
107+ for d in basic0 .listdescriptors (True )["descriptors" ]:
108+ assert_equal (d ["mnemonic" ], legacy_mnemonic )
109+ assert_equal (d ["mnemonicpassphrase" ], legacy_mnemonic_passphrase )
110+
103111 self .log .info ("Test for re-using old addresses after migration" )
104112 new_addr = basic0 .getnewaddress ()
105113 new_change = basic0 .getrawchangeaddress ()
You can’t perform that action at this time.
0 commit comments