From 67bc1a197bd7f76a9a5982b4f16c7087f7271c04 Mon Sep 17 00:00:00 2001 From: gfanton <8671905+gfanton@users.noreply.github.com> Date: Thu, 25 Apr 2024 17:07:17 +0200 Subject: [PATCH] fix: keep data as default gnohome keybase db Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com> --- tm2/pkg/crypto/keys/utils.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tm2/pkg/crypto/keys/utils.go b/tm2/pkg/crypto/keys/utils.go index c848fe574bd..21ec1b5f491 100644 --- a/tm2/pkg/crypto/keys/utils.go +++ b/tm2/pkg/crypto/keys/utils.go @@ -3,15 +3,16 @@ package keys import ( "fmt" "path/filepath" - - "github.com/gnolang/gno/tm2/pkg/bft/config" ) -const defaultKeyDBName = "keys" +const ( + defaultKeyDBName = "keys" + defaultKeyDBDir = "data" +) // NewKeyBaseFromDir initializes a keybase at a particular dir. func NewKeyBaseFromDir(rootDir string) (Keybase, error) { - return NewLazyDBKeybase(defaultKeyDBName, filepath.Join(rootDir, config.DefaultDBDir)), nil + return NewLazyDBKeybase(defaultKeyDBName, filepath.Join(rootDir, defaultKeyDBDir)), nil } func ValidateMultisigThreshold(k, nKeys int) error {