near/backwards: RPC jumping causes us to think the chain went backwards
This commit is contained in:
parent
edfd9987aa
commit
7e958c1643
|
@ -324,11 +324,6 @@ func (e *Watcher) Run(ctx context.Context) error {
|
|||
|
||||
logger.Info("lastBlock", zap.Uint64("lastBlock", lastBlock), zap.Uint64("next_round", e.next_round))
|
||||
|
||||
if lastBlock < e.next_round {
|
||||
logger.Error("Went backwards... ")
|
||||
e.next_round = lastBlock
|
||||
}
|
||||
|
||||
for ; e.next_round <= lastBlock; e.next_round = e.next_round + 1 {
|
||||
if e.next_round == lastBlock {
|
||||
err := e.inspectBody(logger, e.next_round, parsedFinalBody)
|
||||
|
|
Loading…
Reference in New Issue