This commit is contained in:
Eduard S
2021-02-08 13:20:33 +01:00
parent d284baf8c4
commit 33634a00b1

View File

@@ -2,6 +2,7 @@ package node
import ( import (
"context" "context"
"errors"
"fmt" "fmt"
"net/http" "net/http"
"sync" "sync"
@@ -571,10 +572,14 @@ func (n *Node) StartSynchronizer() {
if n.ctx.Err() != nil { if n.ctx.Err() != nil {
continue continue
} }
if errors.Is(err, eth.ErrBlockHashMismatchEvent) {
log.Warnw("Synchronizer.Sync", "err", err)
} else {
log.Errorw("Synchronizer.Sync", "err", err) log.Errorw("Synchronizer.Sync", "err", err)
} }
} }
} }
}
}() }()
n.wg.Add(1) n.wg.Add(1)