-
Notifications
You must be signed in to change notification settings - Fork 95
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
optimization: (eventsyncer) don't remove QBFT instances to speed up historical syncing #1615
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job!
messageID := convert.NewMsgID(eh.networkConfig.DomainType(), share.ValidatorPubKey[:], role) | ||
return store.CleanAllInstances(logger, messageID[:]) | ||
} | ||
err := eh.storageMap.Each(removeDecidedMessages) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is storageMap still used elsewhere? if not we should remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not used, I will remove it (as @AKorpusenko is sick today)
well done! @y0sher @AKorpusenko |
…istorical syncing (#1615) * optimize badger delete action * try another optimization * use dropprefix instead of delete all keys * drop messages only when own share or fullnode * removed usage of store.CleanAllInstances * remove storageMap from eventhandler --------- Co-authored-by: y0sher <lyosher@gmail.com> Co-authored-by: Matus Kysel <matus@ssvlabs.io>
…ync [main] (#1824) * optimization: (eventsyncer) don't remove QBFT instances to speed up historical syncing (#1615) * optimize badger delete action * try another optimization * use dropprefix instead of delete all keys * drop messages only when own share or fullnode * removed usage of store.CleanAllInstances * remove storageMap from eventhandler --------- Co-authored-by: y0sher <lyosher@gmail.com> Co-authored-by: Matus Kysel <matus@ssvlabs.io> * fix build and lint --------- Co-authored-by: Anton Korpusenko <antokorp@gmail.com> Co-authored-by: Matus Kysel <matus@ssvlabs.io> Co-authored-by: Nikita Kryuchkov <nkryuchkov10@gmail.com>
Closes #1593