Closed wacban closed 2 weeks ago
Attention: Patch coverage is 50.00000%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 70.23%. Comparing base (
9a41e3e
) to head (14c2282
). Report is 1 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
chain/chain/src/chain_update.rs | 50.00% | 0 Missing and 2 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Since #11381 the congestion info from the current block, not the previous block, should be used when applying chunks. The same logic change needs to be applied in state sync / catchup.
I found this issue while working on a unrelated test loop test for congestion control. I will follow up with the test separately because I would like to get this merged ASAP and the test still requires some work.
Sadly the existing test -
state_sync_missing_chunks.py
- does not catch this issue despite covering the relevant lines. This is because in this test there is no congestion so it doesn't matter what block is used.