Skip to content

Commit

Permalink
fix: use correct protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed May 24, 2022
1 parent 503d5f0 commit 7bf52a3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions chain/chain/src/tests/simple_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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");
}
}

Expand Down
4 changes: 2 additions & 2 deletions core/primitives/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))]
Expand Down Expand Up @@ -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")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -282,7 +282,7 @@ expression: receipts_gas_profile
CostGasUsed {
cost_category: "WASM_HOST_COST",
cost: "WRITE_REGISTER_BYTE",
gas_used: 1417983372,
gas_used: 1904583564,
},
],
[
Expand Down
4 changes: 2 additions & 2 deletions nearcore/res/genesis_config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"protocol_version": 54,
"protocol_version": 55,
"genesis_time": "1970-01-01T00:00:00.000000000Z",
"chain_id": "sample",
"genesis_height": 0,
Expand Down Expand Up @@ -67,4 +67,4 @@
6250
],
"records": []
}
}

0 comments on commit 7bf52a3

Please sign in to comment.