Closed tayfunelmas closed 1 month ago
Attention: Patch coverage is 50.58140%
with 85 lines
in your changes missing coverage. Please review.
Project coverage is 71.39%. Comparing base (
e8fa073
) to head (c6f8ad9
).
Files with missing lines | Patch % | Lines |
---|---|---|
core/primitives/src/test_utils.rs | 50.00% | 85 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@tayfunelmas I think you forgot to bump the nightly protocol version. Upping it to 145 makes a bunch of tests to fail.
@tayfunelmas I think you forgot to bump the nightly protocol version. Upping it to 145 makes a bunch of tests to fail.
Oh right, the nightly proto version did not change. I will prepare a separate PR dedicated to that and fix the tests.
In https://github.com/near/nearcore/pull/12024, we introduced
BlockHeaderV5
but could not move it to Nightly because some tests were relying on using only a single header version. In other words, it was not possible to have two different header versions in stable and nightly builds.To address that, we remove the
get_mut
function (which returnsBlockHeaderV4
only) and add a bunch of setter functions, one per field, which chooses the right header version to mutate.Then we move the feature enabling the
BlockHeaderV5
to Nightly.