Merge pull request #4347 from filecoin-project/fix/sync/message-validation-state-height

fix(sync state): set state height to actual tipset height
This commit is contained in:
Łukasz Magiera
2020-10-13 17:55:51 +02:00
committed by GitHub
+1 -1
View File
@@ -1478,7 +1478,7 @@ func (syncer *Syncer) syncFork(ctx context.Context, incoming *types.TipSet, know
func (syncer *Syncer) syncMessagesAndCheckState(ctx context.Context, headers []*types.TipSet) error {
ss := extractSyncState(ctx)
ss.SetHeight(0)
ss.SetHeight(headers[len(headers)-1].Height())
return syncer.iterFullTipsets(ctx, headers, func(ctx context.Context, fts *store.FullTipSet) error {
log.Debugw("validating tipset", "height", fts.TipSet().Height(), "size", len(fts.TipSet().Cids()))