mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
consensu/misc/eip4844: implement EIP-7918 adjustments to excess blobgas calculation
This commit is contained in:
parent
701df4baad
commit
778d5ceea5
1 changed files with 3 additions and 0 deletions
|
|
@ -76,6 +76,9 @@ func CalcExcessBlobGas(config *params.ChainConfig, parent *types.Header, headTim
|
||||||
if excessBlobGas < targetGas {
|
if excessBlobGas < targetGas {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
if config.IsOsaka(new(big.Int).Add(big.NewInt(1), parent.Number), headTimestamp) {
|
||||||
|
return excessBlobGas / 3
|
||||||
|
}
|
||||||
return excessBlobGas - targetGas
|
return excessBlobGas - targetGas
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue