Skip to content

Commit

Permalink
fix: get rid of withdrawal root
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgao001 committed Jul 29, 2024
1 parent f41e0e5 commit aa148ad
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core/blockarchiver/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit aa148ad

Please sign in to comment.