Skip to content

Commit

Permalink
test: add abortrescan RPC test
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonOdiwuor committed Apr 29, 2024
1 parent a46065e commit 415f2b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/functional/wallet_transactiontime_rescan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 415f2b4

Please sign in to comment.