From abadfa6526e6667ba3cdff54bd701456577226d3 Mon Sep 17 00:00:00 2001 From: ehsan shariati Date: Tue, 31 Oct 2023 20:14:17 -0400 Subject: [PATCH] Update keystore.go --- blockchain/keystore.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/blockchain/keystore.go b/blockchain/keystore.go index c89bb229..6cc5ed70 100644 --- a/blockchain/keystore.go +++ b/blockchain/keystore.go @@ -26,13 +26,7 @@ func NewSimpleKeyStorer(dbPath string) *SimpleKeyStorer { err := os.MkdirAll(dbPath, 0755) if err != nil { // Fallback to a local directory - dbPath = "./internal/.secrets" - if _, err := os.Stat(dbPath); os.IsNotExist(err) { - err = os.MkdirAll(dbPath, 0755) - if err != nil { - panic("Failed to create fallback directory: " + err.Error()) - } - } + dbPath = "." } }