aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-04-24 15:23:27 +0800
committerGitHub <noreply@github.com>2019-04-24 15:23:27 +0800
commit3bc4cb2b9bb26c739d7e80daf42509628501758e (patch)
treed5470452cb77029285567e3ce294ae2958021040
parentff246f8ac36d7bbbb8323026c457200d66c07889 (diff)
downloaddexon-consensus-3bc4cb2b9bb26c739d7e80daf42509628501758e.tar
dexon-consensus-3bc4cb2b9bb26c739d7e80daf42509628501758e.tar.gz
dexon-consensus-3bc4cb2b9bb26c739d7e80daf42509628501758e.tar.bz2
dexon-consensus-3bc4cb2b9bb26c739d7e80daf42509628501758e.tar.lz
dexon-consensus-3bc4cb2b9bb26c739d7e80daf42509628501758e.tar.xz
dexon-consensus-3bc4cb2b9bb26c739d7e80daf42509628501758e.tar.zst
dexon-consensus-3bc4cb2b9bb26c739d7e80daf42509628501758e.zip
core: change log level (#577)
-rw-r--r--core/consensus.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/consensus.go b/core/consensus.go
index 3443c96..a1def58 100644
--- a/core/consensus.go
+++ b/core/consensus.go
@@ -224,7 +224,7 @@ func (recv *consensusBAReceiver) ConfirmBlock(
var exist bool
block, exist = recv.agreementModule.findBlockNoLock(hash)
if !exist {
- recv.consensus.logger.Error("Unknown block confirmed",
+ recv.consensus.logger.Debug("Unknown block confirmed",
"hash", hash.String()[:6])
ch := make(chan *types.Block)
func() {
@@ -245,7 +245,7 @@ func (recv *consensusBAReceiver) ConfirmBlock(
case <-time.After(1 * time.Second):
}
}
- recv.consensus.logger.Info("Receive unknown block",
+ recv.consensus.logger.Debug("Receive unknown block",
"hash", hash.String()[:6],
"position", block.Position)
recv.agreementModule.addCandidateBlock(block)