From 0241bfda4984094fff9e2ca2c750b8466652619c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ha=20=C4=90ANG?= Date: Tue, 2 Jul 2019 21:58:53 +0700 Subject: [PATCH] dccs: only tracing log for known issue (#242) * dccs: only tracing log for known issue * dccs: correct a log message --- consensus/dccs/dccs.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/consensus/dccs/dccs.go b/consensus/dccs/dccs.go index d7919fcf9aaf..ce830e001e96 100644 --- a/consensus/dccs/dccs.go +++ b/consensus/dccs/dccs.go @@ -564,7 +564,7 @@ func (d *Dccs) snapshot2(chain consensus.ChainReader, number uint64, hash common // Get signers from Nexty staking smart contract at the latest epoch checkpoint from block number checkpoint := chain.GetHeaderByNumber(cp) if checkpoint == nil { - log.Error("snapshot header not available", "number", cp) + log.Trace("snapshot header not available", "number", cp) continue } hash := checkpoint.Hash() @@ -577,12 +577,12 @@ func (d *Dccs) snapshot2(chain consensus.ChainReader, number uint64, hash common } state, err := chain.StateAt(checkpoint.Root) if state == nil || err != nil { - log.Error("snapshot state not available", "number", cp, "err", err) + log.Trace("snapshot state not available", "number", cp, "err", err) continue } size := state.GetCodeSize(chain.Config().Dccs.Contract) if size <= 0 || state.Error() != nil { - log.Error("snapshot state not available", "number", cp, "err", state.Error()) + log.Trace("snapshot contract state not available", "number", cp, "err", state.Error()) continue } index := common.BigToHash(common.Big0)