From aa148adc6ca4e7bcade1e8ee970a3373f71d6534 Mon Sep 17 00:00:00 2001 From: Alexgao001 Date: Mon, 29 Jul 2024 16:43:26 +0800 Subject: [PATCH] fix: get rid of withdrawal root --- core/blockarchiver/converter.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/blockarchiver/converter.go b/core/blockarchiver/converter.go index fb381a9b82..97084c493b 100644 --- a/core/blockarchiver/converter.go +++ b/core/blockarchiver/converter.go @@ -73,12 +73,6 @@ func convertBlock(block *Block) (*GeneralBlock, error) { return nil, err } - var withdrawals *common.Hash - if block.WithdrawalsRoot != "" { - hash := common.HexToHash(block.WithdrawalsRoot) - withdrawals = &hash - } - var baseFeePerGas *big.Int if block.BaseFeePerGas != "" { baseFeePerGas, err = HexToBigInt(block.BaseFeePerGas) @@ -124,7 +118,6 @@ func convertBlock(block *Block) (*GeneralBlock, error) { Extra: hexutil.MustDecode(block.ExtraData), MixDigest: common.HexToHash(block.MixHash), Nonce: types.EncodeNonce(nonce), - WithdrawalsHash: withdrawals, BlobGasUsed: blobGasUsed, ExcessBlobGas: excessBlobGas, ParentBeaconRoot: parentBeaconRoot,