mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-30 13:50:51 +02:00
test: add abortrescan RPC test
This commit is contained in:
committed by
fanquake
parent
75a5c8258e
commit
2630b64f81
@@ -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)
|
||||
|
Reference in New Issue
Block a user