From 415f2b497526a1b34a1b7dcae06a5a7a82f84c7b Mon Sep 17 00:00:00 2001 From: Brandon Odiwuor Date: Sat, 10 Feb 2024 11:26:34 +0300 Subject: [PATCH] test: add abortrescan RPC test --- test/functional/wallet_transactiontime_rescan.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/functional/wallet_transactiontime_rescan.py b/test/functional/wallet_transactiontime_rescan.py index ea99992084865..2dbeb3e4d67f9 100755 --- a/test/functional/wallet_transactiontime_rescan.py +++ b/test/functional/wallet_transactiontime_rescan.py @@ -144,6 +144,10 @@ def run_test(self): restorewo_wallet.importaddress(wo2, rescan=False) restorewo_wallet.importaddress(wo3, rescan=False) + self.log.info('Testing abortrescan when no rescan is in progress') + assert_equal(restorewo_wallet.getwalletinfo()['scanning'], False) + assert_equal(restorewo_wallet.abortrescan(), False) + # check user has 0 balance and no transactions assert_equal(restorewo_wallet.getbalance(), 0) assert_equal(len(restorewo_wallet.listtransactions()), 0)