Skip to content

Commit

Permalink
chore: remove the nv25-dev feature flag
Browse files Browse the repository at this point in the history
chore: remove the nv25-dev feature flag
  • Loading branch information
rjan90 committed Dec 4, 2024
1 parent 2ded891 commit b5e63c3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
2 changes: 2 additions & 0 deletions fvm/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changes to the reference FVM implementation.

## [Unreleased]

- chore: remove the nv25-dev feature flag [#2093](https://github.com/filecoin-project/ref-fvm/pull/2093)

## 4.5.2 [2024-11-21]

- feat: add `nv25-dev` feature flag [#2076](https://github.com/filecoin-project/ref-fvm/pull/2076)
Expand Down
1 change: 0 additions & 1 deletion fvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ gas_calibration = []
# The current implementation keeps it by default for backward compatibility reason.
# See <https://github.com/filecoin-project/ref-fvm/issues/2001>
verify-signature = []
nv25-dev = []
10 changes: 5 additions & 5 deletions fvm/src/gas/price_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,11 +1001,11 @@ impl PriceList {
/// Returns gas price list by NetworkVersion for gas consumption.
pub fn price_list_by_network_version(network_version: NetworkVersion) -> &'static PriceList {
match network_version {
NetworkVersion::V21 | NetworkVersion::V22 | NetworkVersion::V23 | NetworkVersion::V24 => {
&WATERMELON_PRICES
}
#[cfg(feature = "nv25-dev")]
NetworkVersion::V25 => &WATERMELON_PRICES,
NetworkVersion::V21
| NetworkVersion::V22
| NetworkVersion::V23
| NetworkVersion::V24
| NetworkVersion::V25 => &WATERMELON_PRICES,
_ => panic!("network version {nv} not supported", nv = network_version),
}
}
Expand Down
5 changes: 0 additions & 5 deletions fvm/src/machine/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ where
/// * `blockstore`: The underlying [blockstore][`Blockstore`] for reading/writing state.
/// * `externs`: Client-provided ["external"][`Externs`] methods for accessing chain state.
pub fn new(context: &MachineContext, blockstore: B, externs: E) -> anyhow::Result<Self> {
#[cfg(not(feature = "nv25-dev"))]
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
NetworkVersion::V21..=NetworkVersion::V24;

#[cfg(feature = "nv25-dev")]
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
NetworkVersion::V21..=NetworkVersion::V25;

Expand Down

0 comments on commit b5e63c3

Please sign in to comment.