Parametrise whether sync validators should use cache

This commit is contained in:
Aayush Rajasekaran
2020-09-30 01:39:06 -04:00
parent 73d193bd9c
commit c45c8f34a1
3 changed files with 19 additions and 22 deletions
+1 -8
View File
@@ -138,14 +138,7 @@ func (a *SyncAPI) SyncValidateTipset(ctx context.Context, tsk types.TipSetKey) (
return false, err
}
for _, blk := range tsk.Cids() {
err = a.Syncer.ChainStore().UnmarkBlockAsValidated(ctx, blk)
if err != nil {
return false, err
}
}
err = a.Syncer.ValidateTipSet(ctx, fts)
err = a.Syncer.ValidateTipSet(ctx, fts, false)
if err != nil {
return false, err
}