From a21f55919b4df97b1ecc6745b35fce335e877680 Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 17 Jun 2021 22:21:49 +0300 Subject: [PATCH] CompactionThreshold should be 4 finalities otherwise we'll wear clown shoes with the slack and end up in continuous compaction. --- 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 ccf88f529..22adadd28 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 = 3 * build.Finality + CompactionThreshold = 4 * build.Finality // CompactionBoundary is the number of epochs from the current epoch at which // we will walk the chain for live objects.