From f4297e42d0cf3e55419730996c7a0897242556ca Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 22 Jun 2023 10:35:07 -0400 Subject: [PATCH] satellite/payments/accountfreeze: set grace period default to 15 days Change-Id: Ied8f3758b579b83ebf04cba0fde9715c689bac4f --- satellite/payments/accountfreeze/chore.go | 2 +- scripts/testdata/satellite-config.yaml.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/satellite/payments/accountfreeze/chore.go b/satellite/payments/accountfreeze/chore.go index bebec9297..4acea402a 100644 --- a/satellite/payments/accountfreeze/chore.go +++ b/satellite/payments/accountfreeze/chore.go @@ -29,7 +29,7 @@ var ( 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"` + GracePeriod time.Duration `help:"How long to wait between a warning event and freezing an account." default:"360h"` PriceThreshold int64 `help:"The failed invoice amount (in cents) beyond which an account will not be frozen" default:"10000"` } diff --git a/scripts/testdata/satellite-config.yaml.lock b/scripts/testdata/satellite-config.yaml.lock index 5a04bf45a..bc4d95e5f 100755 --- a/scripts/testdata/satellite-config.yaml.lock +++ b/scripts/testdata/satellite-config.yaml.lock @@ -2,7 +2,7 @@ # account-freeze.enabled: false # How long to wait between a warning event and freezing an account. -# account-freeze.grace-period: 720h0m0s +# account-freeze.grace-period: 360h0m0s # How often to run this chore, which is how often unpaid invoices are checked. # account-freeze.interval: 24h0m0s