-
Notifications
You must be signed in to change notification settings - Fork 4
enhancement: optimized reorg handling by deferring checks to end of stream (historic) #234
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
base: main
Are you sure you want to change the base?
Conversation
|
Hi @yug49 thanks for the contribution. Do you mind updating this PR (merging main) and using the new range_iterator for the looping logic |
T_EDITOR=true git rebase --continue 2>&1 o "" | git rebase --continue t status TOR=":" git rebase --continue
7b8ea49 to
2424da5
Compare
be91793 to
d522302
Compare
Hello @LeoPatOZ |
|
Hey @yug49 sorry for the delayed response re this PR. Looking a lot better - I had the idea of refactoring this and creating a The major difference is
|
No problem @LeoPatOZ |
|
Hey @LeoPatOZ |
Resolves #227
Description
This PR optimizes the historic/sync scanning modes by deferring reorg checks until after all block ranges have been streamed.
Changes
stream_historical_rangein common.rs:BlockNotFound), sendReorgDetectednotification and re-stream all non-finalized blockshandle_historicalin block_range_scanner.rs:ReorgHandlerinstantiation and parameter passing (no longer needed for historic mode)catchup_historical_blocksno longer requiresreorg_handlerparameter