-
Notifications
You must be signed in to change notification settings - Fork 971
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/state): CoreAccessor
relies on header.Head
instead of header.Getter
#1088
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1088 +/- ##
==========================================
+ Coverage 56.82% 56.84% +0.01%
==========================================
Files 136 136
Lines 9063 9064 +1
==========================================
+ Hits 5150 5152 +2
Misses 3372 3372
+ Partials 541 540 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Awesome. Like this line:
Note that "chain head" is subjective to the component
reporting it.
…ce and lint core_access.go imports
4482f43
03686b7
to
4482f43
Compare
…ad of `header.Getter` (celestiaorg#1088) * refactor(service/state): Remove unused header.Getter from state service and lint core_access.go imports * refactor(header): Extract Head method from Getter into its own interface `Head` * feat(header/sync): Syncer implements header.Head * doc(header/sync): document Head method better * refactor(service/state): CoreAccessor takes header.Head instead of header.Getter
CoreAccessor
relies on theSyncer
implementation ofheader.Head
instead of theheader.Store
implementation ofheader.Getter
in order to provide access to more current network head, and consequently, balance information.