From 2d0b6e75776844573a2866c45c4f2a21d03a6af0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Fri, 10 May 2019 16:37:03 +0300 Subject: [PATCH] core: raise a louder warning for non-clique known blocks --- core/blockchain.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index 91249ad9ba..52d1a7c29b 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1238,7 +1238,11 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, [] // just skip the block (we already validated it once fully (and crashed), since // its header and body was already in the database). if err == ErrKnownBlock { - log.Debug("Inserted known block", "number", block.Number(), "hash", block.Hash(), + logger := log.Debug + if bc.chainConfig.Clique == nil { + logger = log.Warn + } + logger("Inserted known block", "number", block.Number(), "hash", block.Hash(), "uncles", len(block.Uncles()), "txs", len(block.Transactions()), "gas", block.GasUsed(), "root", block.Root())