fix: sync: reduce log from error to info

And fix the message to account for the fact that we now reject _old_
blocks along with new ones.

We frequently receive "out of date" blocks in hello messages from
syncing and/or out of sync nodes. This isn't an error.
This commit is contained in:
Steven Allen 2023-04-25 14:34:13 -07:00
parent 7162c656cc
commit a97dae8f46

View File

@ -209,7 +209,7 @@ func (syncer *Syncer) InformNewHead(from peer.ID, fts *store.FullTipSet) bool {
}
if !syncer.consensus.IsEpochInConsensusRange(fts.TipSet().Height()) {
log.Errorf("Received block with impossibly large height %d", fts.TipSet().Height())
log.Infof("received block outside of consensus range at height %d", fts.TipSet().Height())
return false
}