From 7c9de90acb2dcbdc8d439faa7995ee738e19e89e Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 8 Feb 2023 14:53:05 -0800 Subject: [PATCH] chore: remove hyperspace fallback gas premium (#1651) We're switching between multiple FVM versions anyways, so we don't need to support pre h-nv20 here. --- fvm/src/executor/default.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/fvm/src/executor/default.rs b/fvm/src/executor/default.rs index 2a340d9ad..ad2f9fed1 100644 --- a/fvm/src/executor/default.rs +++ b/fvm/src/executor/default.rs @@ -94,19 +94,6 @@ where .min(&msg.gas_fee_cap - &self.context().base_fee) .max(TokenAmount::zero()); - // TODO: Remove after the upgrade. - // If we're on hyperspace with a network version less than 20, we need to disable this fix - // until the next upgrade (version 20). - // - // I've written it this way to nicely isolate the bugfix to make it easier to remove. - #[cfg(feature = "hyperspace")] - let effective_premium = - if self.context().network_version < fvm_shared::version::NetworkVersion::new(20) { - msg.gas_premium.clone() - } else { - effective_premium - }; - // Acquire an engine from the pool. This may block if there are concurrently executing // messages inside other executors sharing the same pool. let engine = self.engine_pool.acquire();