From 74b84ed2890afa56cad61e2b200ebb3839fed4b1 Mon Sep 17 00:00:00 2001 From: noescape0 Date: Mon, 24 Oct 2022 20:35:17 +0400 Subject: [PATCH] reduce default compaction threshold --- src/Stratis.Bitcoin.Features.BlockStore/StoreSettings.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stratis.Bitcoin.Features.BlockStore/StoreSettings.cs b/src/Stratis.Bitcoin.Features.BlockStore/StoreSettings.cs index b9b97fbb70..9dc9876ebe 100644 --- a/src/Stratis.Bitcoin.Features.BlockStore/StoreSettings.cs +++ b/src/Stratis.Bitcoin.Features.BlockStore/StoreSettings.cs @@ -77,7 +77,7 @@ public StoreSettings(NodeSettings nodeSettings) this.ReIndex = config.GetOrDefault("reindex", false, this.logger); this.ReIndexChain = config.GetOrDefault("reindex-chain", false, this.logger); this.AddressIndex = config.GetOrDefault("addressindex", false, this.logger); - this.AddressIndexerCompactionThreshold = config.GetOrDefault("compactionthreshold", 8000, this.logger); + this.AddressIndexerCompactionThreshold = config.GetOrDefault("compactionthreshold", 500, this.logger); if (this.PruningEnabled && this.TxIndex) throw new ConfigurationException("Prune mode is incompatible with -txindex");