diff --git a/packages/vm/src/runBlock.ts b/packages/vm/src/runBlock.ts index c2299dc349..c047064219 100644 --- a/packages/vm/src/runBlock.ts +++ b/packages/vm/src/runBlock.ts @@ -659,18 +659,14 @@ async function applyTransactions(vm: VM, block: Block, opts: RunBlockOpts) { const receipts: TxReceipt[] = [] const txResults: RunTxResult[] = [] + const maxGasLimit = block.header.gasLimit + /* * Process transactions */ for (let txIdx = 0; txIdx < block.transactions.length; txIdx++) { const tx = block.transactions[txIdx] - let maxGasLimit - if (vm.common.isActivatedEIP(1559)) { - maxGasLimit = block.header.gasLimit * vm.common.param('elasticityMultiplier') - } else { - maxGasLimit = block.header.gasLimit - } const gasLimitIsHigherThanBlock = maxGasLimit < tx.gasLimit + gasUsed if (gasLimitIsHigherThanBlock) { const msg = _errorMsg('tx has a higher gas limit than the block', vm, block)