Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wallet rescans to Properties #59

Open
kn0wmad opened this issue Mar 28, 2022 · 7 comments
Open

Add wallet rescans to Properties #59

kn0wmad opened this issue Mar 28, 2022 · 7 comments
Assignees
Labels
Enhancement New feature or request Known Solution General solution is known, just requires implementation P2 - Desirable high prioity, nice-to-haves

Comments

@kn0wmad
Copy link
Contributor

kn0wmad commented Mar 28, 2022

In order to give user feedback without them going into the logs and discovering "benign" RPC errors

@kn0wmad kn0wmad added Known Solution General solution is known, just requires implementation Enhancement New feature or request P2 - Desirable high prioity, nice-to-haves labels Mar 28, 2022
@ProofOfKeags
Copy link
Contributor

what would this measure?

@kn0wmad
Copy link
Contributor Author

kn0wmad commented Apr 1, 2022

%age of scan complete, similar to sync. @chrisguida suggested this could be a health check, although it would really only be relevant during a wallet scan. The rest of the time it's perhaps clutter

@chrisguida
Copy link
Contributor

This could also go in properties

@ProofOfKeags
Copy link
Contributor

What do you want to happen in if there is no wallet scan in progress? A green health check? No health check?

@chrisguida
Copy link
Contributor

We could disable it if there's no scan in progress. Would probably want an option in the UI to hide it if it's disabled.

A better solution is probably to just put it in properties, rather than implement this as a health check.

@ProofOfKeags
Copy link
Contributor

A better solution is probably to just put it in properties, rather than implement this as a health check.

+1

@chrisguida chrisguida changed the title Create Health Check for Wallet Scans Add wallet rescans to Properties Apr 4, 2022
@Reckless-Satoshi
Copy link

Reckless-Satoshi commented Jul 31, 2023

Is there an action to start a wallet rescan or does it have to be triggered from CLI bitcoin-cli rescanblockchain?

I think an action like this could be created:

actions:
  # ...
  # reindex
  # delete-peers
  # ...
  rescan:
      name: "Rescan Blockchain"
      description: "Rescans the blockchain for Bitcoin Core wallet transactions. Useful when recovering old wallets on StartOS apps that depend on Bitcoin Core wallet functionalities."
      warning: The rescan will start from block zero and can take several hours to finish. 
      allowed-statuses:
        - running
      implementation:
        type: script  # something that triggers bitcoin-cli rescanblockchain
  # ...

Ideally, a parameter can be passed for the initial_blockheight or date to start the rescan (by default rescans from block 0). Extra cool if the rescan progress is shown in the UI as commented above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Known Solution General solution is known, just requires implementation P2 - Desirable high prioity, nice-to-haves
Projects
Status: Todo
Development

No branches or pull requests

4 participants