Skip to content

Commit

Permalink
near-vm: add a nightly feature (near#9119)
Browse files Browse the repository at this point in the history
This replaces the wasmer2 test instead of adding a new one because of near#8590.
  • Loading branch information
nagisa authored and nikurt committed Jun 8, 2023
1 parent 39025e7 commit b8e2dfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ protocol_feature_fix_staking_threshold = []
protocol_feature_fix_contract_loading_cost = []
protocol_feature_reject_blocks_with_outdated_protocol_version = []
protocol_feature_preparation_v2 = []
protocol_feature_near_vm_runtime = []
nightly = [
"nightly_protocol",
"protocol_feature_fix_staking_threshold",
"protocol_feature_fix_contract_loading_cost",
"protocol_feature_reject_blocks_with_outdated_protocol_version",
"protocol_feature_preparation_v2",
"protocol_feature_near_vm_runtime",
]

nightly_protocol = []
Expand Down
4 changes: 4 additions & 0 deletions core/primitives/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ pub enum ProtocolFeature {
RejectBlocksWithOutdatedProtocolVersions,
#[cfg(feature = "protocol_feature_preparation_v2")]
PreparationV2,
#[cfg(feature = "protocol_feature_near_vm_runtime")]
NearVmRuntime,
}

/// Both, outgoing and incoming tcp connections to peers, will be rejected if `peer's`
Expand Down Expand Up @@ -266,6 +268,8 @@ impl ProtocolFeature {
ProtocolFeature::RejectBlocksWithOutdatedProtocolVersions => 132,
#[cfg(feature = "protocol_feature_preparation_v2")]
ProtocolFeature::PreparationV2 => 133,
#[cfg(feature = "protocol_feature_near_vm_runtime")]
ProtocolFeature::NearVmRuntime => 133,
}
}
}
Expand Down

0 comments on commit b8e2dfe

Please sign in to comment.