Skip to content

Commit

Permalink
chore: remove hyperspace fallback gas premium (#1651)
Browse files Browse the repository at this point in the history
We're switching between multiple FVM versions anyways, so we don't need
to support pre h-nv20 here.
  • Loading branch information
Stebalien authored Feb 8, 2023
1 parent 68811f1 commit 7c9de90
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions fvm/src/executor/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7c9de90

Please sign in to comment.