mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
consensus/misc/eip4844: put back var
This commit is contained in:
parent
5fc3cc4d43
commit
1478f6a64e
1 changed files with 5 additions and 2 deletions
|
|
@ -140,8 +140,11 @@ func calcExcessBlobGas(isOsaka bool, bcfg *BlobConfig, parent *types.Header) uin
|
||||||
parentExcessBlobGas = *parent.ExcessBlobGas
|
parentExcessBlobGas = *parent.ExcessBlobGas
|
||||||
parentBlobGasUsed = *parent.BlobGasUsed
|
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 {
|
if excessBlobGas < targetGas {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue