near/backwards: RPC jumping causes us to think the chain went backwards

This commit is contained in:
Josh Siegel 2022-08-09 11:23:57 +00:00 committed by jumpsiegel
parent edfd9987aa
commit 7e958c1643
1 changed files with 0 additions and 5 deletions

View File

@ -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)