Skip to content

Commit

Permalink
change default config value
Browse files Browse the repository at this point in the history
  • Loading branch information
gitferry committed Aug 28, 2024
1 parent 699da4f commit cf535d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions finality-provider/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions itest/test_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cf535d2

Please sign in to comment.