Refactor: Add get_wallet_rescan_status()
instead of getwalletinfo()
for bci
#1478
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Noticed this when tried to rebase #1462 after merging of #1477. #1461 added public
getwalletinfo()
method toBitcoinCoreInterface
, which was used by code outside ofjmclient/jmclient/blockchaininterface.py
. This is bad approach, as it relies on Bitcoin Core RPCgetwalletinfo
returneddict
, which contains a lots of different stuff too, could lead to more problems in future introducing other blockchain interface classes. Let's instead have generic method returning just wallet rescan status. Also it now returnsTuple[bool, Optional[Decimal]]
with rescan status percentage, if rescan is in progress, although that's not used by any other code for now.