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

stabilizing ed25519_verify host function #8098

Merged
merged 7 commits into from
Jan 24, 2023

Conversation

blasrodri
Copy link
Contributor

@blasrodri blasrodri commented Nov 22, 2022

Feature stabilization for ed25519_verify

@blasrodri blasrodri requested a review from a team as a code owner November 22, 2022 08:32
@blasrodri blasrodri requested a review from mzhangmzz November 22, 2022 08:32
@blasrodri
Copy link
Contributor Author

Unsure on how to properly bump the protocol version

Copy link
Contributor

@jakmeier jakmeier left a comment

Choose a reason for hiding this comment

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

@blasrodri mostly looks right, one important change to be made on the WASM imports

Further, runtime::config_store::tests::test_json_unchanged fails. You need to update the insta snapshots to include the new parameters.

Finally, you will need to rebase. I have done significant refactoring around some of the lines changed here in the meantime (sorry about that). Therefore, please go against common practice to rebase after the review and instead rebase now so that I can do the final review on the rebased code. (Hint: If you run into many conflicts, it might even be easier to start from master:HEAD again.)

runtime/near-vm-runner/src/imports.rs Outdated Show resolved Hide resolved
@blasrodri blasrodri force-pushed the blas/ed25519-stabilization branch from 572b416 to be1223b Compare January 17, 2023 20:46
Copy link
Contributor

@jakmeier jakmeier left a comment

Choose a reason for hiding this comment

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

Hey @blasrodri
This PR has 4 failing tests in the near-primitives crate due to observable changes in the gas profiles and runtime configuration. This is expected, as we are adding a new cost. You need to update the snapshots accordingly.

Best is to cargo install cargo-insta and run tests with cargo insta test -p near-primitives followed by cargo insta review. Otherwise you have to update snapshots one at the time and rerun tests for each protocol version. (see also insta.rs)

Also, could you please add an entry to the changelog that announces the new feature?

@blasrodri blasrodri force-pushed the blas/ed25519-stabilization branch from 3a33ee7 to f9b2641 Compare January 24, 2023 10:52
@blasrodri blasrodri requested review from jakmeier and removed request for mzhangmzz January 24, 2023 11:21
CHANGELOG.md Show resolved Hide resolved
@@ -235,7 +234,6 @@ impl ProtocolFeature {
ProtocolFeature::FixStakingThreshold => 126,
#[cfg(feature = "protocol_feature_fix_contract_loading_cost")]
ProtocolFeature::FixContractLoadingCost => 129,
#[cfg(feature = "protocol_feature_ed25519_verify")]
ProtocolFeature::Ed25519Verify => 131,
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, this will need a lower protocol number now so that it is included in the stable version. Please move it up to the stable features and update the number accordingly.

Note that we have already bumped the protocol version to 58 in #8360, so you can just set the version to 58 and don't have to bump again.

blasrodri and others added 2 commits January 24, 2023 13:14
Co-authored-by: Jakob Meier <mail@jakobmeier.ch>
Copy link
Contributor

@jakmeier jakmeier left a comment

Choose a reason for hiding this comment

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

Looks good, will merge it now.

Thanks @blasrodri for your tireless work from start to finish! 🙏

@near-bulldozer near-bulldozer bot merged commit 6e08a41 into near:master Jan 24, 2023
@blasrodri blasrodri deleted the blas/ed25519-stabilization branch January 24, 2023 13:41
ppca pushed a commit to ppca/nearcore that referenced this pull request Jan 30, 2023
Feature stabilization for `ed25519_verify`
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