test: add abortrescan RPC test

This commit is contained in:
Brandon Odiwuor
2024-02-10 11:26:34 +03:00
committed by fanquake
parent 75a5c8258e
commit 2630b64f81

View File

@@ -147,6 +147,10 @@ class TransactionTimeRescanTest(BitcoinTestFramework):
)
assert_equal(all([r["success"] for r in import_res]), True)
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)