diff --git a/blockstore/splitstore/splitstore.go b/blockstore/splitstore/splitstore.go index 660823762..3d7049010 100644 --- a/blockstore/splitstore/splitstore.go +++ b/blockstore/splitstore/splitstore.go @@ -439,6 +439,9 @@ func (s *SplitStore) HeadChange(_, apply []*types.TipSet) error { if err != nil { log.Warnf("error saving sync gap epoch: %s", err) } + + // don't attempt compaction before we have caught up syncing + return nil } if !atomic.CompareAndSwapInt32(&s.compacting, 0, 1) {