From 156f4f0140bff9a19d6dbea7a80381f14db63119 Mon Sep 17 00:00:00 2001 From: jangko Date: Thu, 31 Aug 2023 10:58:31 +0700 Subject: [PATCH] Fix EIP-4844 and EIP-4788 genesis initialization --- nimbus/common/genesis.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nimbus/common/genesis.nim b/nimbus/common/genesis.nim index bdbad14a0..7a44df42e 100644 --- a/nimbus/common/genesis.nim +++ b/nimbus/common/genesis.nim @@ -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;