Skip to content

Commit 2b54219

Browse files
authored
chore: remove the nv25-dev feature flag (#2093)
chore: remove the nv25-dev feature flag
1 parent 2ded891 commit 2b54219

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

fvm/CHANGELOG.md

+2
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 nv25-dev feature flag [#2093](https://github.com/filecoin-project/ref-fvm/pull/2093)
8+
79
## 4.5.2 [2024-11-21]
810

911
- feat: add `nv25-dev` feature flag [#2076](https://github.com/filecoin-project/ref-fvm/pull/2076)

fvm/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,3 @@ gas_calibration = []
6161
# The current implementation keeps it by default for backward compatibility reason.
6262
# See <https://github.com/filecoin-project/ref-fvm/issues/2001>
6363
verify-signature = []
64-
nv25-dev = []

fvm/src/gas/price_list.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1001,11 +1001,11 @@ impl PriceList {
10011001
/// Returns gas price list by NetworkVersion for gas consumption.
10021002
pub fn price_list_by_network_version(network_version: NetworkVersion) -> &'static PriceList {
10031003
match network_version {
1004-
NetworkVersion::V21 | NetworkVersion::V22 | NetworkVersion::V23 | NetworkVersion::V24 => {
1005-
&WATERMELON_PRICES
1006-
}
1007-
#[cfg(feature = "nv25-dev")]
1008-
NetworkVersion::V25 => &WATERMELON_PRICES,
1004+
NetworkVersion::V21
1005+
| NetworkVersion::V22
1006+
| NetworkVersion::V23
1007+
| NetworkVersion::V24
1008+
| NetworkVersion::V25 => &WATERMELON_PRICES,
10091009
_ => panic!("network version {nv} not supported", nv = network_version),
10101010
}
10111011
}

fvm/src/machine/default.rs

-5
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 = "nv25-dev"))]
55-
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
56-
NetworkVersion::V21..=NetworkVersion::V24;
57-
58-
#[cfg(feature = "nv25-dev")]
5954
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
6055
NetworkVersion::V21..=NetworkVersion::V25;
6156

0 commit comments

Comments
 (0)