From e750f6f1450dbeb69e8d2c87af06c2c362866f5f Mon Sep 17 00:00:00 2001 From: Wilfred Asomani Date: Thu, 23 Mar 2023 13:32:15 +0000 Subject: [PATCH] satellite/accountfreeze: change price threshold default The default price threshold has been changed to 10000 cents. The help text has also been modified to clarify that this value is in cents. Change-Id: I3b605056c860a3afef7202950180bc8b863fe16a --- satellite/payments/accountfreeze/chore.go | 2 +- scripts/testdata/satellite-config.yaml.lock | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/satellite/payments/accountfreeze/chore.go b/satellite/payments/accountfreeze/chore.go index 3d105309c..12d065d7a 100644 --- a/satellite/payments/accountfreeze/chore.go +++ b/satellite/payments/accountfreeze/chore.go @@ -30,7 +30,7 @@ type Config struct { Enabled bool `help:"whether to run this chore." default:"false"` Interval time.Duration `help:"How often to run this chore, which is how often unpaid invoices are checked." default:"24h"` GracePeriod time.Duration `help:"How long to wait between a warning event and freezing an account." default:"720h"` - PriceThreshold int64 `help:"The failed invoice amount beyond which an account will not be frozen" default:"2000"` + PriceThreshold int64 `help:"The failed invoice amount (in cents) beyond which an account will not be frozen" default:"10000"` } // Chore is a chore that checks for unpaid invoices and potentially freezes corresponding accounts. diff --git a/scripts/testdata/satellite-config.yaml.lock b/scripts/testdata/satellite-config.yaml.lock index db1ae5f30..7e66ff96e 100755 --- a/scripts/testdata/satellite-config.yaml.lock +++ b/scripts/testdata/satellite-config.yaml.lock @@ -7,8 +7,8 @@ # How often to run this chore, which is how often unpaid invoices are checked. # account-freeze.interval: 24h0m0s -# The failed invoice amount beyond which an account will not be frozen -# account-freeze.price-threshold: 2000 +# The failed invoice amount (in cents) beyond which an account will not be frozen +# account-freeze.price-threshold: 10000 # admin peer http listening address # admin.address: ""