From b6d72df43aafff31f4a85863836759332f6f2f1f Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Thu, 2 May 2024 13:56:50 +0800 Subject: [PATCH] debug --- internal/ethapi/api.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 863849f4d..7442ead8f 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1279,6 +1279,12 @@ func RPCMarshalBlock(block *types.Block, inclTx bool, fullTx bool, config *param fields["uncles"] = uncleHashes if block.Header().WithdrawalsHash != nil { fields["withdrawals"] = block.Withdrawals() + log.Warn("block.Withdrawals: ", block.Withdrawals()) + if block.Withdrawals() == nil { + log.Warn("block.Withdrawals is nil") + } + } else { + log.Warn("block.WithdrawalsHash not set") } return fields }