Fix EIP-4844 and EIP-4788 genesis initialization

This commit is contained in:
jangko 2023-08-31 10:58:31 +07:00
parent 47fae1bb71
commit 156f4f0140
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 3 additions and 3 deletions

View File

@ -81,9 +81,9 @@ proc toGenesisHeader*(
result.withdrawalsRoot = some(EMPTY_ROOT_HASH)
if fork >= Cancun:
result.blobGasUsed = g.blobGasUsed
result.excessBlobGas = g.excessBlobGas
result.parentBeaconBlockRoot = g.parentBeaconBlockRoot
result.blobGasUsed = g.blobGasUsed.get(0'u64).some
result.excessBlobGas = g.excessBlobGas.get(0'u64).some
result.parentBeaconBlockRoot = g.parentBeaconBlockRoot.get(Hash256()).some
proc toGenesisHeader*(
genesis: Genesis;