From f3efb91719d930a374a94a829afcd8f991403857 Mon Sep 17 00:00:00 2001 From: Mohsin Zaidi <2236875+smrz2001@users.noreply.github.com> Date: Tue, 1 Aug 2023 15:33:07 -0400 Subject: [PATCH] chore: enable anchor db audit in prod --- cmd/cas/main.go | 3 +-- env/.env.prod | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/cas/main.go b/cmd/cas/main.go index 1583c25..1652657 100644 --- a/cmd/cas/main.go +++ b/cmd/cas/main.go @@ -297,13 +297,12 @@ func main() { batchingConsumer.Start() validationConsumer.Start() - // Enable auditing of the anchor DB to check for pending anchor requests that might have been missed if configAnchorAuditEnabled, found := os.LookupEnv(models.Env_AnchorAuditEnabled); found { if anchorAuditEnabled, err := strconv.ParseBool(configAnchorAuditEnabled); (err == nil) && anchorAuditEnabled { wg.Add(1) go func() { defer wg.Done() - // Poll for requests that haven't been processed in time + // Enable auditing of the anchor DB to check for pending anchor requests that might have been missed services.NewRequestPoller(logger, anchorDb, stateDb, validateQueue, discordHandler).Run(serverCtx) }() } diff --git a/env/.env.prod b/env/.env.prod index 6880e56..7ccb646 100644 --- a/env/.env.prod +++ b/env/.env.prod @@ -1,4 +1,4 @@ -ANCHOR_AUDIT_ENABLED=false +ANCHOR_AUDIT_ENABLED=true ANCHOR_BATCH_LINGER=6h ANCHOR_BATCH_SIZE=1024 ANCHOR_BATCH_MONITOR_TICK=10s