From 124d2e84f2453cdde88295b7df4c72dbd3e62c32 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 ffce7d5..0d5d0e2 100644 --- a/node/node.go +++ b/node/node.go @@ -2,6 +2,7 @@ package node import ( "context" + "errors" "fmt" "net/http" "sync" @@ -579,7 +580,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) + } } } }