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

Decouple CoreExchange from CoreListener and extract common logic #3

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

Wondertan
Copy link
Collaborator

No description provided.

@Wondertan Wondertan requested a review from renaynay as a code owner January 7, 2022 13:58
@Wondertan Wondertan changed the title Check the code Decouple CoreExchange from CoreListener and extract common logic Jan 7, 2022
@Wondertan
Copy link
Collaborator Author

Don't get why it includes the commits which are already on the base branch and thus the conflicts.

Copy link
Owner

@renaynay renaynay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can you squash ur commits?

@renaynay renaynay force-pushed the hlib/broadcaster-proposal branch from ca2d8ab to d593043 Compare January 7, 2022 15:57
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
@renaynay renaynay force-pushed the hlib/broadcaster-proposal branch from d593043 to 9ca8545 Compare January 7, 2022 16:09
@renaynay renaynay merged commit 570e8a2 into broadcaster Jan 7, 2022
@renaynay renaynay deleted the hlib/broadcaster-proposal branch January 7, 2022 16:26
renaynay pushed a commit that referenced this pull request Jan 7, 2022
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
renaynay added a commit that referenced this pull request Jan 10, 2022
…casting new `ExtendedHeader`s to the gossipsub network (#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants