diff --git a/nimbus/evm/state_transactions.nim b/nimbus/evm/state_transactions.nim index 38a88d55b..efa6c00d0 100644 --- a/nimbus/evm/state_transactions.nim +++ b/nimbus/evm/state_transactions.nim @@ -36,13 +36,6 @@ proc setupTxContext*(vmState: BaseVMState, origin: EthAddress, gasPrice: GasInt, vmState.gasCosts = vmState.fork.forkToSchedule -proc refundGas*(c: Computation, tx: Transaction, sender: EthAddress) = - let maxRefund = (tx.gasLimit - c.gasMeter.gasRemaining) div 2 - c.gasMeter.returnGas min(c.getGasRefund(), maxRefund) - c.vmState.mutateStateDB: - db.addBalance(sender, c.gasMeter.gasRemaining.u256 * tx.gasPrice.u256) - - # FIXME-awkwardFactoring: the factoring out of the pre and # post parts feels awkward to me, but for now I'd really like # not to have too much duplicated code between sync and async. diff --git a/nimbus/sync/snap/worker/pivot/heal_accounts.nim b/nimbus/sync/snap/worker/pivot/heal_accounts.nim index 2735aa0d1..31122b46a 100644 --- a/nimbus/sync/snap/worker/pivot/heal_accounts.nim +++ b/nimbus/sync/snap/worker/pivot/heal_accounts.nim @@ -36,7 +36,7 @@ ## healing algorithm again. ## import - std/[math, sequtils], + std/[math, sequtils, tables], chronicles, chronos, eth/[common, p2p, trie/nibbles, trie/trie_defs, rlp], diff --git a/nimbus/sync/snap/worker/pivot/heal_storage_slots.nim b/nimbus/sync/snap/worker/pivot/heal_storage_slots.nim index 4835b295e..9238a43f7 100644 --- a/nimbus/sync/snap/worker/pivot/heal_storage_slots.nim +++ b/nimbus/sync/snap/worker/pivot/heal_storage_slots.nim @@ -38,7 +38,7 @@ ## healing algorithm again. ## import - std/[math, sequtils], + std/[math, sequtils, tables], chronicles, chronos, eth/[common, p2p, trie/nibbles],