From c1c8a2c46d880798bca74968b350388889432737 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 12 Sep 2024 18:19:16 +0200 Subject: [PATCH] internal/ethapi: avoid copying header --- internal/ethapi/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index c7429f5035..79f2965b05 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1433,10 +1433,10 @@ func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool, config *param uncleHashes[i] = uncle.Hash() } fields["uncles"] = uncleHashes - if block.Header().WithdrawalsHash != nil { + if block.Withdrawals() != nil { fields["withdrawals"] = block.Withdrawals() } - if block.Header().RequestsHash != nil { + if block.Requests() != nil { // Convert requests to hex. hexreq := make([]hexutil.Bytes, len(block.Requests())) for i, req := range block.Requests() {