Skip to content

Commit

Permalink
fix: increase interval for staging
Browse files Browse the repository at this point in the history
  • Loading branch information
chmllr committed Dec 9, 2024
1 parent 0e51c34 commit a32b6e1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions halo/app/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ const (
genesisTrimLag uint64 = 1 // Allow deleting attestations in block after approval.
genesisCTrimLag uint64 = 72_000 // Delete consensus attestations state after +-1 day (given a period of 1.2s).

deliverIntervalProtected = 20_000 // Roughly ~12h assumping 0.5bps
deliverIntervalEphemeral = 2 // Fast updates while testing
deliverIntervalProtected = 20_000 // Roughly ~12h assuming 0.5bps
// TODO(christian): remove after testing.
deliverIntervalStaging = 300 // Roughly ~10m assuming 0.5bps
deliverIntervalEphemeral = 2 // Fast updates while testing
)

//nolint:gochecknoglobals // Cosmos-style
Expand Down Expand Up @@ -245,6 +247,10 @@ var (
)

func deliverInterval(network netconf.ID) int64 {
if network == netconf.Staging {
return deliverIntervalStaging
}

if network.IsProtected() {
return deliverIntervalProtected
}
Expand Down

0 comments on commit a32b6e1

Please sign in to comment.