Skip to content

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

Merged
merged 43 commits into from
Apr 23, 2025
Merged

Work-report distribution & Work-report request #328

merged 43 commits into from
Apr 23, 2025

Conversation

MacOMNI
Copy link
Contributor

@MacOMNI MacOMNI commented Apr 14, 2025

No description provided.

Copy link

codecov bot commented Apr 14, 2025

Codecov Report

Attention: Patch coverage is 88.10289% with 37 lines in your changes missing coverage. Please review.

Project coverage is 86.84%. Comparing base (3a5310f) to head (d3d277a).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...urces/Node/NetworkingProtocol/NetworkManager.swift 55.55% 16 Missing ⚠️
...ces/Blockchain/Validator/GuaranteeingService.swift 0.00% 8 Missing ⚠️
...kchain/Sources/Blockchain/BlockchainServices.swift 78.26% 5 Missing ⚠️
...ces/Blockchain/Types/GuaranteedWorkReportRef.swift 58.33% 5 Missing ⚠️
...NetworkingProtocol/CommonEphemeral/CERequest.swift 66.66% 2 Missing ⚠️
...Blockchain/Validator/DataAvailabilityService.swift 97.61% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MacOMNI MacOMNI marked this pull request as ready for review April 18, 2025 05:56
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
Copy link
Member

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

Comment on lines +415 to +417
if case let .failure(error) = resp.result {
throw error // failed
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if case let .failure(error) = resp.result {
throw error // failed
}
_ = try resp.result.get()

@MacOMNI MacOMNI merged commit a2489a4 into master Apr 23, 2025
5 checks passed
@MacOMNI MacOMNI deleted the dev-JAMNP branch April 23, 2025 01:44
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