-
Notifications
You must be signed in to change notification settings - Fork 0
Work-report distribution & Work-report request #328
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #328 +/- ##
==========================================
+ Coverage 86.82% 86.84% +0.02%
==========================================
Files 348 350 +2
Lines 29480 29661 +181
==========================================
+ Hits 25595 25760 +165
- Misses 3885 3901 +16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
func add(block: BlockRef) async throws | ||
func add(state: StateRef) async throws | ||
func setFinalizedHead(hash: Data32) async throws | ||
|
||
/// throw BlockchainDataProviderError.noData if parent is not a head | ||
func updateHead(hash: Data32, parent: Data32) async throws | ||
|
||
/// remove header, block and state | ||
/// remove header, block, workReport, state |
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.
best to have a remove(blockHash: Data32)
and a remove(workReportHash: Data32)
to ensure we don't mix different kinds of hashes
if case let .failure(error) = resp.result { | ||
throw error // failed | ||
} |
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.
if case let .failure(error) = resp.result { | |
throw error // failed | |
} | |
_ = try resp.result.get() |
No description provided.