Skip to content

Commit 86ce8af

Browse files
reverted discardTs
1 parent 0b433a8 commit 86ce8af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

store/store.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ func (s *Store) Partition() {
311311
}
312312
// if the partition height is past the partition frequency, set the discardTs at the partition height-1
313313
if snapshotHeight > partitionFrequency {
314-
fmt.Println("SETTING DISCARD TS @", sc.Version()-2)
315-
sc.db.SetDiscardTs(sc.Version() - 2)
314+
fmt.Println("SETTING DISCARD TS @", snapshotHeight-2)
315+
sc.db.SetDiscardTs(snapshotHeight - 2)
316316
}
317317
// if the GC isn't already running
318318
if !s.isGarbageCollecting.Swap(true) {

0 commit comments

Comments
 (0)