From 33634a00b16e239b50ee49230ba7b28f363e1eab Mon Sep 17 00:00:00 2001 From: Eduard S Date: Mon, 8 Feb 2021 13:20:33 +0100 Subject: [PATCH] WIP --- node/node.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/node/node.go b/node/node.go index 924bed0..389e77a 100644 --- a/node/node.go +++ b/node/node.go @@ -2,6 +2,7 @@ package node import ( "context" + "errors" "fmt" "net/http" "sync" @@ -571,7 +572,11 @@ func (n *Node) StartSynchronizer() { if n.ctx.Err() != nil { continue } - log.Errorw("Synchronizer.Sync", "err", err) + if errors.Is(err, eth.ErrBlockHashMismatchEvent) { + log.Warnw("Synchronizer.Sync", "err", err) + } else { + log.Errorw("Synchronizer.Sync", "err", err) + } } } }