add warning if no tipset found

This commit is contained in:
whyrusleeping 2019-08-15 21:51:50 -07:00
parent e2dc8c8cee
commit 6ae38740a1

View File

@ -194,6 +194,8 @@ func (cs *ChainStore) MaybeTakeHeavierTipSet(ts *types.TipSet) error {
return errors.Wrap(err, "head change func errored (BAD)")
}
}
} else {
log.Warn("no heaviest tipset found, using %s", ts.Cids())
}
log.Infof("New heaviest tipset! %s", ts.Cids())