Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ 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 = []
nv28-dev = []

# Allow coverage attribute.
[lints.rust]
Expand Down
2 changes: 2 additions & 0 deletions fvm/src/gas/price_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,8 @@ pub fn price_list_by_network_version(network_version: NetworkVersion) -> &'stati
&WATERMELON_PRICES
}
NetworkVersion::V25 | NetworkVersion::V26 | NetworkVersion::V27 => &TEEP_PRICES,
#[cfg(feature = "nv28-dev")]
NetworkVersion::V28 => &TEEP_PRICES,
_ => panic!("network version {nv} not supported", nv = network_version),
}
}
Expand Down
4 changes: 4 additions & 0 deletions fvm/src/machine/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ 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 = "nv28-dev"))]
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
NetworkVersion::V21..=NetworkVersion::V27;
#[cfg(feature = "nv28-dev")]
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
NetworkVersion::V21..=NetworkVersion::V28;

debug!(
"initializing a new machine, epoch={}, base_fee={}, nv={:?}, root={}",
Expand Down
2 changes: 2 additions & 0 deletions shared/src/version/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ impl NetworkVersion {
pub const V26: Self = Self(26);
/// TBD (TBD builtin-actor v17)
Comment thread
rjan90 marked this conversation as resolved.
Outdated
pub const V27: Self = Self(27);
/// TBD (TBD builtin-actor v18)
pub const V28: Self = Self(28);

pub const MAX: Self = Self(u32::MAX);

Expand Down
Loading