make the change slightly more aesthetic

This commit is contained in:
Jared Wasinger 2025-05-02 19:15:54 +08:00
parent 778d5ceea5
commit 593fbee5cb

View file

@ -76,7 +76,7 @@ func CalcExcessBlobGas(config *params.ChainConfig, parent *types.Header, headTim
if excessBlobGas < targetGas {
return 0
}
if config.IsOsaka(new(big.Int).Add(big.NewInt(1), parent.Number), headTimestamp) {
if config.IsOsaka(new(big.Int).Add(parent.Number, big.NewInt(1)), headTimestamp) {
return excessBlobGas / 3
}
return excessBlobGas - targetGas