Merge pull request #6107 from filecoin-project/feat/checkpoint-sync

feat: allow checkpointing to forks
This commit is contained in:
Steven Allen
2021-04-29 16:30:52 -07:00
committed by GitHub
6 changed files with 271 additions and 91 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ func (a *SyncAPI) SyncIncomingBlocks(ctx context.Context) (<-chan *types.BlockHe
func (a *SyncAPI) SyncCheckpoint(ctx context.Context, tsk types.TipSetKey) error {
log.Warnf("Marking tipset %s as checkpoint", tsk)
return a.Syncer.SetCheckpoint(tsk)
return a.Syncer.SyncCheckpoint(ctx, tsk)
}
func (a *SyncAPI) SyncMarkBad(ctx context.Context, bcid cid.Cid) error {