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

Handle race condition with fast rescan and low gap limit #102

Open
cloudhead opened this issue Oct 9, 2022 · 0 comments
Open

Handle race condition with fast rescan and low gap limit #102

cloudhead opened this issue Oct 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@cloudhead
Copy link
Owner

It's likely that a fast rescan combined with a normal or low gap limit will miss some blocks. The reason is that the rescan process doesn't pause when a block is matched, and it never backtracks; so if a block is matched at some height H, while the rescan process is at height H+100, and the matched block at H adds more than the gap-limit worth of new scripts, those will be missed between blocks H and H+100.

This was found out by @straylight-orbit

@cloudhead cloudhead added the bug Something isn't working label Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant