Skip to content

Commit

Permalink
fix: keep data as default gnohome keybase db
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Apr 25, 2024
1 parent cc207f8 commit 67bc1a1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tm2/pkg/crypto/keys/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 67bc1a1

Please sign in to comment.