-
Notifications
You must be signed in to change notification settings - Fork 975
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
services/header: Refactor HeaderService
to be responsible for broadcasting new ExtendedHeader
s to the gossipsub network
#327
Conversation
HeaderService
to be responsible for broadcasting new ExtendedHeader
s to the gossipsub network
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.
Change looks good
@renaynay, a tip: if you add changelogs to the top then there won't be any conflicts. Also, it makes the ordering nice where top changes are recent ones |
feat(service/header): make a helper to assemble ExtendedHeaders refactor(service/header): make core exchange to rely on new helpers refactor(service/header): make core listener to rely on new helpers refactor(node/core): rework construction of core exchange refactor(service): remove erasure as redudandant chore: lint
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.
Looks good and straightforward.
* fix(core): wrap errors instead of logging them * fix(service/header): fix lifecylces issues and make listener more minimal * fix(service/header): core listener should stop if at least one error happens * log(service/header): make annoying 'validation error' a warning
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.
Approving. My review was here(renaynay#4)
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.
Aaaand another one 💪🏼
Looks good!
…casting new `ExtendedHeader`s to the gossipsub network (celestiaorg#327) * core listener * set ctx and cancelfunc to nil after stopped service * changelog * changelog remove todod * feat(core): add GetBlockInfo to Fetcher (#3) feat(service/header): make a helper to assemble ExtendedHeaders refactor(service/header): make core exchange to rely on new helpers refactor(service/header): make core listener to rely on new helpers refactor(node/core): rework construction of core exchange refactor(service): remove erasure as redudandant chore: lint * chore: lint * Broadcaster code review + an alternative (#4) * fix(core): wrap errors instead of logging them * fix(service/header): fix lifecylces issues and make listener more minimal * fix(service/header): core listener should stop if at least one error happens * log(service/header): make annoying 'validation error' a warning * use commit height in GetBlockInfo Co-authored-by: Hlib Kanunnikov <hlibwondertan@gmail.com>
This PR contains the last component necessary for bridge nodes to be able to listen to core nodes for new block events and translate them to
ExtendedHeader
s.A more comprehensive explanation can be found here.
Resolves second TODO in #251.
Resolves #214