From ec33b8cb03d67c332da94b92e35155f262f36bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20Dahl=C3=A9n?= Date: Mon, 20 Dec 2021 09:28:07 +0200 Subject: [PATCH] Update DefaultAccountKeyCount documentation --- README.md | 2 ++ configs/configs.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d6988cd0..16edb1de 100644 --- a/README.md +++ b/README.md @@ -293,6 +293,8 @@ Valid log leves are (case-insensitive): To enable multiple keys for custodial accounts you'll need to set `FLOW_WALLET_DEFAULT_ACCOUNT_KEY_COUNT` to the number of keys each account should have. When a new account is created the auto-generated account key is cloned so that the total number of keys matches the configured value. +NOTE: Changing `FLOW_WALLET_DEFAULT_ACCOUNT_KEY_COUNT` does not affect _existing_ accounts. + ### All possible configuration variables Refer to [configs/configs.go](configs/configs.go) for details and documentation. diff --git a/configs/configs.go b/configs/configs.go index 1c596ec2..8ac64439 100644 --- a/configs/configs.go +++ b/configs/configs.go @@ -71,7 +71,7 @@ type Config struct { EncryptionKey string `env:"FLOW_WALLET_ENCRYPTION_KEY,notEmpty"` // Encryption key type, one of: local, aws_kms, google_kms EncryptionKeyType string `env:"FLOW_WALLET_ENCRYPTION_KEY_TYPE,notEmpty" envDefault:"local"` - // DefaultAccountKeyCount specifies how many times the account key will be duplicated upon account creation + // DefaultAccountKeyCount specifies how many times the account key will be duplicated upon account creation, does not affect existing accounts DefaultAccountKeyCount uint `env:"FLOW_WALLET_DEFAULT_ACCOUNT_KEY_COUNT" envDefault:"1"` // -- Database --