From 5639261e4411a2dafbded83f6614838fb4bffccb Mon Sep 17 00:00:00 2001 From: vyzo Date: Sun, 28 Feb 2021 13:51:42 +0200 Subject: [PATCH] make compaction parameters variable --- chain/store/splitstore/splitstore.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chain/store/splitstore/splitstore.go b/chain/store/splitstore/splitstore.go index 1af411df6..8001f792c 100644 --- a/chain/store/splitstore/splitstore.go +++ b/chain/store/splitstore/splitstore.go @@ -22,7 +22,8 @@ import ( bstore "github.com/filecoin-project/lotus/lib/blockstore" ) -const ( +// these are variable so that 1) lotus-soup builds 2) we can change them in tests +var ( CompactionThreshold = 5 * build.Finality CompactionCold = build.Finality )