-
Notifications
You must be signed in to change notification settings - Fork 925
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
block: create Fetcher
interface
#59
Conversation
dbcccac
to
bfa5c45
Compare
Fetcher
interfaceFetcher
interface
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.
This PR looks good to me for the most part. I don't understand why that channel should be guarded by a mutex? (cc @Wondertan) Otherwise left some minor suggestions.
re #59 (comment) @Wondertan -- because this channel is specifically to listen for |
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.
👍🏼
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.
Should be the final change requestor.
b9140d7
to
f81276f
Compare
Co-authored-by: Hlib Kanunnikov <hlibwondertan@gmail.com>
f81276f
to
b809d03
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.
Approve from department
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.
Great work @renaynay and thanks for the thorough reviews @Wondertan 👏🏼
This PR introduces a block
Fetcher
interface that will encompass the behaviour necessary for theBlockService
to get new blocks either directly from a Core node or from the Celestia network.It also adds an implementation of
Fetcher
for the CoreClient
TODO
BlockService
toFull
nodeRelated to #25 and #26