Closed tayfunelmas closed 3 months ago
Attention: Patch coverage is 86.66667%
with 2 lines
in your changes missing coverage. Please review.
Project coverage is 71.76%. Comparing base (
4e9e742
) to head (c1125ff
). Report is 1 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
chain/chain/src/chain.rs | 85.71% | 1 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This is a mitigation for the failure that is caused by the stabilization PR https://github.com/near/nearcore/pull/11701.
Zulip thread
Context: In statelessnet, the genesis version is above 68, so it assumes that genesis has the congestion control is enabled and hitting an issue that attempts to bootstrap congestion info (again) and hitting missing state roots.
We attempted to move the version numbers for congestion control and stateless validation back to 80 and 81 to mitigate the problem, in this PR but it became unnecessarily complex and risky.
Thus, in this PR, we simply bypass the problematic bootstrap for statelessnet only. We moved the check for the chain id after the genesis protocol version check so we will not run it for testnet and mainnet.