From 7bf52a3c99f6702f0a6c567914e19bed2f18ea22 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 23 May 2022 12:24:22 +0100 Subject: [PATCH] fix: use correct protocol version --- chain/chain/src/tests/simple_chain.rs | 4 ++-- core/primitives/src/version.rs | 4 ++-- ...__tests__runtime__sanity_checks__receipts_gas_profile.snap | 4 ++-- nearcore/res/genesis_config.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/chain/chain/src/tests/simple_chain.rs b/chain/chain/src/tests/simple_chain.rs index 50d76d970f7..be2c9f81c32 100644 --- a/chain/chain/src/tests/simple_chain.rs +++ b/chain/chain/src/tests/simple_chain.rs @@ -41,7 +41,7 @@ fn build_chain() { if cfg!(feature = "nightly") { insta::assert_display_snapshot!(hash, @"8F4vXPPNevoQXVGdwKAZQfzzxhSyqWp3xJiik4RMUKSk"); } else { - insta::assert_display_snapshot!(hash, @"sFAi6Xq5jWcbRetAkMQ3A44GvfLHSLMnb8SqaRsmWmo"); + insta::assert_display_snapshot!(hash, @"6sAno2uEwwQ5yiDscePWY8HWmRJLpGNv39uoff3BCpxT"); } for i in 1..5 { @@ -70,7 +70,7 @@ fn build_chain() { if cfg!(feature = "nightly") { insta::assert_display_snapshot!(hash, @"DrW7MsRaFhEdjQcxjqrTXvNmQ1eptgURQ7RUTeZnrBXC"); } else { - insta::assert_display_snapshot!(hash, @"F5srbRRkG5KBzvDzEpDiiJp257SCVUaeFhNeXAddbHGZ"); + insta::assert_display_snapshot!(hash, @"Fn9MgjUx6VXhPYNqqDtf2C9kBVveY2vuSLXNLZUNJCqK"); } } diff --git a/core/primitives/src/version.rs b/core/primitives/src/version.rs index a4f04fab415..302fb6633ec 100644 --- a/core/primitives/src/version.rs +++ b/core/primitives/src/version.rs @@ -170,7 +170,7 @@ pub const PEER_MIN_ALLOWED_PROTOCOL_VERSION: ProtocolVersion = STABLE_PROTOCOL_V /// Current protocol version used on the mainnet. /// Some features (e. g. FixStorageUsage) require that there is at least one epoch with exactly /// the corresponding version -const STABLE_PROTOCOL_VERSION: ProtocolVersion = 54; +const STABLE_PROTOCOL_VERSION: ProtocolVersion = 55; /// Version used by this binary. #[cfg(not(feature = "nightly_protocol"))] @@ -232,7 +232,7 @@ impl ProtocolFeature { | ProtocolFeature::LimitContractLocals | ProtocolFeature::ChunkNodesCache | ProtocolFeature::LowerStorageKeyLimit => 53, - ProtocolFeature::AltBn128 => 54, + ProtocolFeature::AltBn128 => 55, // Nightly features #[cfg(feature = "protocol_feature_chunk_only_producers")] diff --git a/integration-tests/src/tests/runtime/snapshots/integration_tests__tests__runtime__sanity_checks__receipts_gas_profile.snap b/integration-tests/src/tests/runtime/snapshots/integration_tests__tests__runtime__sanity_checks__receipts_gas_profile.snap index 54b7a748189..920277c92eb 100644 --- a/integration-tests/src/tests/runtime/snapshots/integration_tests__tests__runtime__sanity_checks__receipts_gas_profile.snap +++ b/integration-tests/src/tests/runtime/snapshots/integration_tests__tests__runtime__sanity_checks__receipts_gas_profile.snap @@ -262,7 +262,7 @@ expression: receipts_gas_profile CostGasUsed { cost_category: "WASM_HOST_COST", cost: "WASM_INSTRUCTION", - gas_used: 27893896668, + gas_used: 28020601092, }, CostGasUsed { cost_category: "WASM_HOST_COST", @@ -282,7 +282,7 @@ expression: receipts_gas_profile CostGasUsed { cost_category: "WASM_HOST_COST", cost: "WRITE_REGISTER_BYTE", - gas_used: 1417983372, + gas_used: 1904583564, }, ], [ diff --git a/nearcore/res/genesis_config.json b/nearcore/res/genesis_config.json index 571fca48c0e..0d960c70601 100644 --- a/nearcore/res/genesis_config.json +++ b/nearcore/res/genesis_config.json @@ -1,5 +1,5 @@ { - "protocol_version": 54, + "protocol_version": 55, "genesis_time": "1970-01-01T00:00:00.000000000Z", "chain_id": "sample", "genesis_height": 0, @@ -67,4 +67,4 @@ 6250 ], "records": [] -} +} \ No newline at end of file