Skip to content
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

feat(optimistic_block): pass optimistic block to producers over T1 #12888

Merged
merged 12 commits into from
Feb 13, 2025

Conversation

VanBarbascu
Copy link
Contributor

@VanBarbascu VanBarbascu commented Feb 7, 2025

Pass the optimistic block to all producers over the T1 network.

Copy link
Member

@Longarithm Longarithm left a comment

Choose a reason for hiding this comment

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

Can we add a test? I think test_optimistic_block can be checked with stronger condition like "number of cache hits ~= number of processed chunks".

chain/network/src/network_protocol/borsh.rs Outdated Show resolved Hide resolved
Comment on lines +787 to +788
// TODO(#10584): send this message to all the producers.
// Maybe we just need to send this to the next producers.
Copy link
Member

Choose a reason for hiding this comment

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

Isn't tier1 the same as "all validators"? Yeah we need to send it to all chunk producers in this epoch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The question here was between thw whole of T1 or just next N blocks worth of producers. 99 vs 8(shards) * N(blocks). But we can go with all for now.

@VanBarbascu VanBarbascu force-pushed the optimistic_block/send branch from afaab02 to c0696ac Compare February 12, 2025 18:45
@VanBarbascu VanBarbascu marked this pull request as ready for review February 12, 2025 18:45
@VanBarbascu VanBarbascu requested a review from a team as a code owner February 12, 2025 18:45
Copy link

codecov bot commented Feb 12, 2025

Codecov Report

Attention: Patch coverage is 86.66667% with 8 lines in your changes missing coverage. Please review.

Project coverage is 70.53%. Comparing base (0e21730) to head (1c99f8f).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
...rk/src/network_protocol/proto_conv/peer_message.rs 76.47% 0 Missing and 4 partials ⚠️
chain/network/src/network_protocol/borsh_conv.rs 0.00% 2 Missing ⚠️
chain/client/src/client_actor.rs 83.33% 0 Missing and 1 partial ⚠️
tools/chainsync-loadtest/src/network.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12888      +/-   ##
==========================================
- Coverage   70.54%   70.53%   -0.02%     
==========================================
  Files         851      851              
  Lines      174914   174983      +69     
  Branches   174914   174983      +69     
==========================================
+ Hits       123395   123424      +29     
- Misses      46397    46430      +33     
- Partials     5122     5129       +7     
Flag Coverage Δ
backward-compatibility 0.36% <0.00%> (-0.01%) ⬇️
db-migration 0.36% <0.00%> (-0.01%) ⬇️
genesis-check 1.42% <0.00%> (-0.01%) ⬇️
linux 70.35% <3.33%> (-0.05%) ⬇️
linux-nightly 70.18% <86.66%> (-0.01%) ⬇️
pytests 1.73% <0.00%> (-0.01%) ⬇️
sanity-checks 1.54% <0.00%> (-0.01%) ⬇️
unittests 70.36% <86.66%> (-0.02%) ⬇️
upgradability 0.36% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

integration-tests/src/test_loop/tests/optimistic_block.rs Outdated Show resolved Hide resolved
integration-tests/src/test_loop/tests/optimistic_block.rs Outdated Show resolved Hide resolved
core/chain-configs/src/client_config.rs Outdated Show resolved Hide resolved
@VanBarbascu VanBarbascu added this pull request to the merge queue Feb 13, 2025
Merged via the queue into near:master with commit 8b3fc09 Feb 13, 2025
29 checks passed
@VanBarbascu VanBarbascu deleted the optimistic_block/send branch February 13, 2025 16:49
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