add more info to chain sync lookback failure

This commit is contained in:
whyrusleeping
2020-10-08 09:45:07 -05:00
parent 8d2d74438b
commit cdc2f86f5a
+1 -1
View File
@@ -731,7 +731,7 @@ func (syncer *Syncer) ValidateBlock(ctx context.Context, b *types.FullBlock, use
lbst, _, err := syncer.sm.TipSetState(ctx, lbts)
if err != nil {
return xerrors.Errorf("failed to compute lookback tipset state: %w", err)
return xerrors.Errorf("failed to compute lookback tipset state (epoch %d): %w", lbts.Height(), err)
}
prevBeacon, err := syncer.store.GetLatestBeaconEntry(baseTs)