Skip to content

Commit

Permalink
test: check scanning field from getwalletinfo
Browse files Browse the repository at this point in the history
During a rescan, check that `getwalletinfo` returns
properly information (the scanning field) about it.
  • Loading branch information
brunoerg committed Jan 30, 2025
1 parent 809d7e7 commit 45badbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/functional/wallet_importdescriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ def run_test(self):
except JSONRPCException as e:
assert e.error["code"] == -4 and "Error: the wallet is currently being used to rescan the blockchain for related transactions. Please call `abortrescan` before changing the passphrase." in e.error["message"]

assert_equal(self.nodes[0].cli("-rpcwallet=encrypted_wallet").getwalletinfo()["scanning"], {'duration': 1, 'progress': 0})
assert_equal(importing.result(), [{"success": True}])

assert_equal(temp_wallet.getbalance(), encrypted_wallet.getbalance())
Expand Down

0 comments on commit 45badbb

Please sign in to comment.