From fadd9d8b81324b0d4405de2837ac9939b2cef6c5 Mon Sep 17 00:00:00 2001 From: law wang <915337710@qq.com> Date: Tue, 16 Apr 2024 17:21:20 +0800 Subject: [PATCH] eth/catalyst: fix log (#29549) log:output the correct variable Co-authored-by: steven --- eth/catalyst/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index d154d794be..e279d168fe 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -627,7 +627,7 @@ func (api *ConsensusAPI) newPayload(params engine.ExecutableData, versionedHashe log.Warn("State not available, ignoring new payload") return engine.PayloadStatusV1{Status: engine.ACCEPTED}, nil } - log.Trace("Inserting block without sethead", "hash", block.Hash(), "number", block.Number) + log.Trace("Inserting block without sethead", "hash", block.Hash(), "number", block.Number()) if err := api.eth.BlockChain().InsertBlockWithoutSetHead(block); err != nil { log.Warn("NewPayloadV1: inserting block failed", "error", err)