Skip to content

Commit

Permalink
Set relay profile's MaxBalanceHistoryLookback to 22000 to better supp…
Browse files Browse the repository at this point in the history
…ort catchup from the two latest catchpoints.
  • Loading branch information
gmalouf committed Jan 23, 2024
1 parent 2e0644c commit 4899916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/algocfg/profileCommand.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ var (
relay = configUpdater{
description: "Relay consensus messages across the network and support catchup.",
updateFunc: func(cfg config.Local) config.Local {
cfg.MaxBlockHistoryLookback = 20000
cfg.MaxBlockHistoryLookback = 22000 // Enough to support 2 catchpoints with some wiggle room for nodes to catch up from the older one

Check warning on line 72 in cmd/algocfg/profileCommand.go

View check run for this annotation

Codecov / codecov/patch

cmd/algocfg/profileCommand.go#L72

Added line #L72 was not covered by tests
cfg.CatchpointFileHistoryLength = 3
cfg.CatchpointTracking = 2
cfg.EnableLedgerService = true
Expand Down

0 comments on commit 4899916

Please sign in to comment.