From db53859e7a029800daf797e68dbd81ca3ee418d5 Mon Sep 17 00:00:00 2001 From: vyzo Date: Sun, 4 Jul 2021 22:12:51 +0300 Subject: [PATCH] reduce CompactionThreshold to 5 finalities so that we run compaction every finality, once we've first compacted --- blockstore/splitstore/splitstore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockstore/splitstore/splitstore.go b/blockstore/splitstore/splitstore.go index d6e597aa3..31e50b356 100644 --- a/blockstore/splitstore/splitstore.go +++ b/blockstore/splitstore/splitstore.go @@ -44,7 +44,7 @@ var ( // === :: cold (already archived) // ≡≡≡ :: to be archived in this compaction // --- :: hot - CompactionThreshold = 6 * build.Finality + CompactionThreshold = 5 * build.Finality // CompactionBoundary is the number of epochs from the current epoch at which // we will walk the chain for live objects.