This commit is contained in:
Roy Crihfield 2024-05-02 13:56:50 +08:00
parent a74854121b
commit b6d72df43a

View File

@ -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
}