From 1478f6a64eb3a7f7d092d42bb0125b51270a1b7b Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 13 Aug 2025 12:09:40 +0200 Subject: [PATCH] consensus/misc/eip4844: put back var --- consensus/misc/eip4844/eip4844.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/consensus/misc/eip4844/eip4844.go b/consensus/misc/eip4844/eip4844.go index f55f006e1c..dfe271d86c 100644 --- a/consensus/misc/eip4844/eip4844.go +++ b/consensus/misc/eip4844/eip4844.go @@ -140,8 +140,11 @@ func calcExcessBlobGas(isOsaka bool, bcfg *BlobConfig, parent *types.Header) uin parentExcessBlobGas = *parent.ExcessBlobGas parentBlobGasUsed = *parent.BlobGasUsed } - excessBlobGas := parentExcessBlobGas + parentBlobGasUsed - targetGas := uint64(bcfg.Target) * params.BlobTxBlobGasPerBlob + + var ( + excessBlobGas = parentExcessBlobGas + parentBlobGasUsed + targetGas = uint64(bcfg.Target) * params.BlobTxBlobGasPerBlob + ) if excessBlobGas < targetGas { return 0 }