Skip to content

Commit 2630b64

Browse files
BrandonOdiwuorfanquake
authored andcommitted
test: add abortrescan RPC test
1 parent 75a5c82 commit 2630b64

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional/wallet_transactiontime_rescan.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@ def run_test(self):
147147
)
148148
assert_equal(all([r["success"] for r in import_res]), True)
149149

150+
self.log.info('Testing abortrescan when no rescan is in progress')
151+
assert_equal(restorewo_wallet.getwalletinfo()['scanning'], False)
152+
assert_equal(restorewo_wallet.abortrescan(), False)
153+
150154
# check user has 0 balance and no transactions
151155
assert_equal(restorewo_wallet.getbalance(), 0)
152156
assert_equal(len(restorewo_wallet.listtransactions()), 0)

0 commit comments

Comments
 (0)