From cf535d24401cac2bec479e3059010df145de434e Mon Sep 17 00:00:00 2001 From: Fangyu Gai Date: Wed, 28 Aug 2024 10:19:13 +0800 Subject: [PATCH] change default config value --- finality-provider/config/config.go | 6 +++--- itest/test_manager.go | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/finality-provider/config/config.go b/finality-provider/config/config.go index f6af37a8..fabce0b1 100644 --- a/finality-provider/config/config.go +++ b/finality-provider/config/config.go @@ -25,9 +25,9 @@ const ( defaultFinalityProviderKeyName = "finality-provider" DefaultRPCPort = 12581 defaultConfigFileName = "fpd.conf" - defaultNumPubRand = 1000 - defaultNumPubRandMax = 1000 - defaultMinRandHeightGap = 20 + defaultNumPubRand = 70000 // support running of 1 week with block production time as 10s + defaultNumPubRandMax = 100000 + defaultMinRandHeightGap = 35000 defaultStatusUpdateInterval = 20 * time.Second defaultRandomInterval = 30 * time.Second defaultSubmitRetryInterval = 1 * time.Second diff --git a/itest/test_manager.go b/itest/test_manager.go index b2b51222..3ddee10c 100644 --- a/itest/test_manager.go +++ b/itest/test_manager.go @@ -800,6 +800,10 @@ func (tm *TestManager) InsertBTCDelegation(t *testing.T, fpPks []*btcec.PublicKe func defaultFpConfig(keyringDir, homeDir string) *fpcfg.Config { cfg := fpcfg.DefaultConfigWithHome(homeDir) + cfg.NumPubRand = 1000 + cfg.NumPubRandMax = 1000 + cfg.MinRandHeightGap = 500 + cfg.BitcoinNetwork = "simnet" cfg.BTCNetParams = chaincfg.SimNetParams