From a424102b6caeb6503106b658a42f4cee81f3c71a Mon Sep 17 00:00:00 2001 From: Victor Fusco <1221933+vfusco@users.noreply.github.com> Date: Tue, 22 Oct 2024 18:57:41 -0300 Subject: [PATCH] chore: decrease advancer and validator polling intervals --- internal/config/generate/Config.toml | 4 ++-- internal/config/generated.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/config/generate/Config.toml b/internal/config/generate/Config.toml index ab07776fd..e6177f209 100644 --- a/internal/config/generate/Config.toml +++ b/internal/config/generate/Config.toml @@ -57,13 +57,13 @@ description = """ How many seconds the retry policy will wait between retries.""" [rollups.CARTESI_ADVANCER_POLLING_INTERVAL] -default = "30" +default = "7" go-type = "Duration" description = """ How many seconds the node will wait before querying the database for new inputs.""" [rollups.CARTESI_VALIDATOR_POLLING_INTERVAL] -default = "30" +default = "7" go-type = "Duration" description = """ How many seconds the node will wait before trying to finish epochs for all applications.""" diff --git a/internal/config/generated.go b/internal/config/generated.go index 7e9bcfb23..87bf9d02d 100644 --- a/internal/config/generated.go +++ b/internal/config/generated.go @@ -411,7 +411,7 @@ func GetPostgresEndpoint() string { func GetAdvancerPollingInterval() Duration { s, ok := os.LookupEnv("CARTESI_ADVANCER_POLLING_INTERVAL") if !ok { - s = "30" + s = "7" } val, err := toDuration(s) if err != nil { @@ -459,7 +459,7 @@ func GetEvmReaderRetryPolicyMaxRetries() uint64 { func GetValidatorPollingInterval() Duration { s, ok := os.LookupEnv("CARTESI_VALIDATOR_POLLING_INTERVAL") if !ok { - s = "30" + s = "7" } val, err := toDuration(s) if err != nil {