From 124f444dd6b12ab5e5f05b38c4626c9225c12a86 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 14 Jul 2023 11:26:05 -0700 Subject: [PATCH] chore: remove hyperspace feature (#1814) This is no longer supported. fixes #1813 --- fvm/Cargo.toml | 1 - fvm/src/gas/price_list.rs | 2 -- fvm/src/machine/default.rs | 5 ----- 3 files changed, 8 deletions(-) diff --git a/fvm/Cargo.toml b/fvm/Cargo.toml index e964da23b..11e75eb56 100644 --- a/fvm/Cargo.toml +++ b/fvm/Cargo.toml @@ -62,5 +62,4 @@ cuda = ["filecoin-proofs-api/cuda"] testing = [] arb = ["arbitrary", "quickcheck", "fvm_shared/arb", "cid/arb"] m2-native = [] -hyperspace = [] gas_calibration = [] diff --git a/fvm/src/gas/price_list.rs b/fvm/src/gas/price_list.rs index 5390bd666..d8c6b21a2 100644 --- a/fvm/src/gas/price_list.rs +++ b/fvm/src/gas/price_list.rs @@ -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), } } diff --git a/fvm/src/machine/default.rs b/fvm/src/machine/default.rs index ea8155627..e37f26c60 100644 --- a/fvm/src/machine/default.rs +++ b/fvm/src/machine/default.rs @@ -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 { - #[cfg(not(feature = "hyperspace"))] const SUPPORTED_VERSIONS: RangeInclusive = NetworkVersion::V18..=NetworkVersion::V20; - #[cfg(feature = "hyperspace")] - const SUPPORTED_VERSIONS: RangeInclusive = - 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