Skip to content

Commit

Permalink
chore: remove hyperspace feature (#1814)
Browse files Browse the repository at this point in the history
This is no longer supported.

fixes #1813
  • Loading branch information
Stebalien committed Jul 14, 2023
1 parent 185aa32 commit 124f444
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion fvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,4 @@ cuda = ["filecoin-proofs-api/cuda"]
testing = []
arb = ["arbitrary", "quickcheck", "fvm_shared/arb", "cid/arb"]
m2-native = []
hyperspace = []
gas_calibration = []
2 changes: 0 additions & 2 deletions fvm/src/gas/price_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -980,8 +980,6 @@ impl PriceList {
pub fn price_list_by_network_version(network_version: NetworkVersion) -> &'static PriceList {
match network_version {
NetworkVersion::V18 | NetworkVersion::V19 | NetworkVersion::V20 => &HYGGE_PRICES,
#[cfg(feature = "hyperspace")]
_ if network_version > NetworkVersion::V18 => &HYGGE_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 @@ -59,14 +59,9 @@ 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 = "hyperspace"))]
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
NetworkVersion::V18..=NetworkVersion::V20;

#[cfg(feature = "hyperspace")]
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
NetworkVersion::V18..=NetworkVersion::MAX;

debug!(
"initializing a new machine, epoch={}, base_fee={}, nv={:?}, root={}",
context.epoch, &context.base_fee, context.network_version, context.initial_state_root
Expand Down

0 comments on commit 124f444

Please sign in to comment.