File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -134,13 +134,22 @@ def test_basic(self):
134
134
self .generate (self .nodes [0 ], 1 )
135
135
bal = basic1 .getbalance ()
136
136
txs = basic1 .listtransactions ()
137
+ addr_gps = basic1 .listaddressgroupings ()
137
138
138
- basic1 .migratewallet ()
139
+ basic1_migrate = basic1 .migratewallet ()
139
140
assert_equal (basic1 .getwalletinfo ()["descriptors" ], True )
140
141
self .assert_is_sqlite ("basic1" )
141
142
assert_equal (basic1 .getbalance (), bal )
142
143
self .assert_list_txs_equal (basic1 .listtransactions (), txs )
143
144
145
+ self .log .info ("Test backup file can be successfully restored" )
146
+ self .nodes [0 ].restorewallet ("basic1_restored" , basic1_migrate ['backup_path' ])
147
+ basic1_restored = self .nodes [0 ].get_wallet_rpc ("basic1_restored" )
148
+ basic1_restored_wi = basic1_restored .getwalletinfo ()
149
+ assert_equal (basic1_restored_wi ['balance' ], bal )
150
+ assert_equal (basic1_restored .listaddressgroupings (), addr_gps )
151
+ self .assert_list_txs_equal (basic1_restored .listtransactions (), txs )
152
+
144
153
# restart node and verify that everything is still there
145
154
self .restart_node (0 )
146
155
default = self .nodes [0 ].get_wallet_rpc (self .default_wallet_name )
You can’t perform that action at this time.
0 commit comments