-
Notifications
You must be signed in to change notification settings - Fork 156
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
Comments
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. |
One might interpret this comment to mean it is blocking future calls. dcrwallet/rpc/jsonrpc/methods.go Lines 2429 to 2430 in 746bab5
|
"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). |
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.
The text was updated successfully, but these errors were encountered: