From 51ca617d9f6edec8cdf90cead1dd5d459832ed47 Mon Sep 17 00:00:00 2001 From: Etan Kissling Date: Tue, 6 Aug 2024 17:48:15 +0200 Subject: [PATCH] fix LC header upgrade to Electra (#6473) Followup on incorrect upgrade procedure in #6375 where `blob_gas_used` was accidentally copied into `excess_blob_gas` when running Electra `LightClientStore` with earlier `LightClient(Bootstrap|Update)`. --- beacon_chain/spec/datatypes/electra.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_chain/spec/datatypes/electra.nim b/beacon_chain/spec/datatypes/electra.nim index fff7f34dd..baacd98c3 100644 --- a/beacon_chain/spec/datatypes/electra.nim +++ b/beacon_chain/spec/datatypes/electra.nim @@ -798,7 +798,7 @@ func upgrade_lc_header_to_electra*( transactions_root: pre.execution.transactions_root, withdrawals_root: pre.execution.withdrawals_root, blob_gas_used: pre.execution.blob_gas_used, - excess_blob_gas: pre.execution.blob_gas_used, + excess_blob_gas: pre.execution.excess_blob_gas, deposit_requests_root: ZERO_HASH, # [New in Electra:EIP6110] withdrawal_requests_root: ZERO_HASH, # [New in Electra:EIP7002:EIP7251] consolidation_requests_root: ZERO_HASH), # [New in Electra:EIP7251]