Skip to content

Conversation

@pashinov
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Feb 17, 2025

Codecov Report

❌ Patch coverage is 4.34783% with 44 lines in your changes missing coverage. Please review.
✅ Project coverage is 42.81%. Comparing base (6c4fb53) to head (884e59e).
⚠️ Report is 482 commits behind head on master.

Files with missing lines Patch % Lines
core/src/blockchain_rpc/client.rs 4.34% 44 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #601      +/-   ##
==========================================
- Coverage   42.90%   42.81%   -0.09%     
==========================================
  Files         278      278              
  Lines       51883    51924      +41     
  Branches    51883    51924      +41     
==========================================
- Hits        22260    22233      -27     
- Misses      28455    28528      +73     
+ Partials     1168     1163       -5     

☔ 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.

@pashinov pashinov force-pushed the feat/check-archive-size branch 2 times, most recently from 7a3738e to 9bc1b25 Compare February 17, 2025 21:30
@pashinov pashinov force-pushed the feat/check-archive-size branch 2 times, most recently from 7fff7ef to 7e67215 Compare February 19, 2025 11:35
Copy link
Member

@0xdeafbeef 0xdeafbeef left a comment

Choose a reason for hiding this comment

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

fix nits, otherwise lgtm

Comment on lines 563 to 568
.choose_multiple(NEIGHBOUR_COUNT, NeighbourType::Reliable);

let mut futures = FuturesUnordered::new();
for neighbour in neighbours {
futures.push(self.overlay_client().query_raw(neighbour, req.clone()));
}
Copy link
Member

Choose a reason for hiding this comment

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

.map(self.overlay_client().query_raw(neighbour, req.clone())
.collect()

id,
size,
chunk_size,
} => match is_reliable_size(expected_size.get(), size.get()) {
Copy link
Member

Choose a reason for hiding this comment

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

ArchiveInfo::Found {
                        id,
                        size,
                        chunk_size,
                    }  is_reliable_size(expected_size.get(), size.get())  => ...
                   ```
                   

@pashinov pashinov force-pushed the feat/check-archive-size branch from a5ea341 to 884e59e Compare February 20, 2025 14:43
@pashinov pashinov changed the title feat(core): check archive size from validator before start downloading Double check heavy archive size before start downloading Feb 20, 2025
@0xdeafbeef 0xdeafbeef added this to the 000 Reliability and safety milestone May 16, 2025
@0xdeafbeef 0xdeafbeef force-pushed the master branch 6 times, most recently from 5a83fcb to 1b9e10a Compare July 3, 2025 13:49
@Rexagon Rexagon force-pushed the master branch 4 times, most recently from dad89c9 to 8d9ab65 Compare July 8, 2025 12:05
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.

3 participants