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

reject multiple rescan requests #1490

Open
raedah opened this issue Jun 20, 2019 · 3 comments
Open

reject multiple rescan requests #1490

raedah opened this issue Jun 20, 2019 · 3 comments

Comments

@raedah
Copy link
Contributor

raedah commented Jun 20, 2019

Using dcrctl, its currently possible to run rescanwallet multiple times concurrently. Expected behavior is to reject the second request saying that rescan is already in progress.

@jrick
Copy link
Member

jrick commented Jun 24, 2019

The RPC API is permissioned. Why would this not be expected behavior, when clients could serialize or combine the rescan requests themselves? Combining rescans would be better anyways, e.g. call importscript multiple times without rescanning, and then rescan once.

@JoeGruffins
Copy link
Member

One might interpret this comment to mean it is blocking future calls.

// rescanWallet initiates a rescan of the block chain for wallet data, blocking
// until the rescan completes or exits with an error.

@matheusd
Copy link
Member

"blocking" in this context means that the rescan operation is blocking the caller from continuing to process stuff until it concludes (not that it's blocking other callers from executing another rescan).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants