Skip to content

Commit 1478f6a

Browse files
committed
consensus/misc/eip4844: put back var
1 parent 5fc3cc4 commit 1478f6a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

consensus/misc/eip4844/eip4844.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,11 @@ func calcExcessBlobGas(isOsaka bool, bcfg *BlobConfig, parent *types.Header) uin
140140
parentExcessBlobGas = *parent.ExcessBlobGas
141141
parentBlobGasUsed = *parent.BlobGasUsed
142142
}
143-
excessBlobGas := parentExcessBlobGas + parentBlobGasUsed
144-
targetGas := uint64(bcfg.Target) * params.BlobTxBlobGasPerBlob
143+
144+
var (
145+
excessBlobGas = parentExcessBlobGas + parentBlobGasUsed
146+
targetGas = uint64(bcfg.Target) * params.BlobTxBlobGasPerBlob
147+
)
145148
if excessBlobGas < targetGas {
146149
return 0
147150
}

0 commit comments

Comments
 (0)