mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
The parent header was missing the BaseFee field when calculating the reserve price for EIP-7918 in the Osaka fork, causing a nil pointer dereference. This fix ensures BaseFee is properly set from ParentBaseFee in the environment. Added regression test case 34 to verify Osaka fork blob gas calculation works correctly with parent base fee.
18 lines
No EOL
639 B
JSON
18 lines
No EOL
639 B
JSON
{
|
|
"currentCoinbase": "0x0000000000000000000000000000000000000000",
|
|
"currentDifficulty": "0x0",
|
|
"currentRandom": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
"currentGasLimit": "0x5f5e100",
|
|
"currentNumber": "0x1",
|
|
"currentTimestamp": "0x1000",
|
|
"parentTimestamp": "0x0",
|
|
"currentBaseFee": "0x10",
|
|
"parentBaseFee": "0x0a",
|
|
"parentGasUsed": "0x0",
|
|
"parentGasLimit": "0x5f5e100",
|
|
"currentExcessBlobGas": "0x0",
|
|
"parentExcessBlobGas": "0x0",
|
|
"parentBlobGasUsed": "0x20000",
|
|
"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
"withdrawals": []
|
|
} |