-
Notifications
You must be signed in to change notification settings - Fork 881
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
refactor(service/header): extract store initialization from Syncer #430
Conversation
f41b312
to
591f6b6
Compare
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.
Merge conflict
Yes and it is very minor, but you can review the PR anyway. I am going to resolve the conflict here and in other PRs altogether with any other rebase conflicts that might appear after applying review feedback. |
f60c198
to
323539a
Compare
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.
Needs issue in opening comment
…g to recent changes
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
Co-authored-by: Ismail Khoffi <Ismail.Khoffi@gmail.com>
d4e542e
to
40e7859
Compare
Co-authored-by: Ismail Khoffi <Ismail.Khoffi@gmail.com>
Added closing issue |
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.
LGTM but some problems with race -- these are known issues though right?
Right |
Previously, Syncer managed Store initialization, which means putting initial/genesis head to the Store, so the Node can sync on top. It's definitely not Syncer's responsibility to manage this and this was causing me troubles while I worked on other stuff, so I decided to extract that. As result, we have a more coherent and transparent initialization code.
Based on #428
Closes: #447
Review commit by commit