Skip to content

Commit ae37134

Browse files
rjan90Copilot
andauthored
chore: remove the nv27-dev feature flag (#2202)
* chore: remove the nv27-dev feature flag chore: remove the nv27-dev feature flag * chore: update changelog chore: update changelog * Update fvm/CHANGELOG.md Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 0dae13c commit ae37134

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

fvm/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Changes to the reference FVM implementation.
44

55
## [Unreleased]
66

7+
- chore: remove the nv27-dev feature flag [#2202](https://github.com/filecoin-project/ref-fvm/pull/2202)
8+
79
## 4.7.2 [2025-05-01]
810

911
- feat: add nv27-skeleton [#2175](https://github.com/filecoin-project/ref-fvm/pull/2175)

fvm/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ gas_calibration = []
6060
# The current implementation keeps it by default for backward compatibility reason.
6161
# See <https://github.com/filecoin-project/ref-fvm/issues/2001>
6262
verify-signature = []
63-
nv27-dev = []
6463

6564
# Allow coverage attribute.
6665
[lints.rust]

fvm/src/gas/price_list.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,9 +1085,7 @@ pub fn price_list_by_network_version(network_version: NetworkVersion) -> &'stati
10851085
NetworkVersion::V21 | NetworkVersion::V22 | NetworkVersion::V23 | NetworkVersion::V24 => {
10861086
&WATERMELON_PRICES
10871087
}
1088-
NetworkVersion::V25 | NetworkVersion::V26 => &TEEP_PRICES,
1089-
#[cfg(feature = "nv27-dev")]
1090-
NetworkVersion::V27 => &TEEP_PRICES,
1088+
NetworkVersion::V25 | NetworkVersion::V26 | NetworkVersion::V27 => &TEEP_PRICES,
10911089
_ => panic!("network version {nv} not supported", nv = network_version),
10921090
}
10931091
}

fvm/src/machine/default.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ where
5151
/// * `blockstore`: The underlying [blockstore][`Blockstore`] for reading/writing state.
5252
/// * `externs`: Client-provided ["external"][`Externs`] methods for accessing chain state.
5353
pub fn new(context: &MachineContext, blockstore: B, externs: E) -> anyhow::Result<Self> {
54-
#[cfg(not(feature = "nv27-dev"))]
55-
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
56-
NetworkVersion::V21..=NetworkVersion::V26;
57-
58-
#[cfg(feature = "nv27-dev")]
5954
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
6055
NetworkVersion::V21..=NetworkVersion::V27;
6156

0 commit comments

Comments
 (0)