Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix path account management #291

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions accounts/keystore/keystore.go
dusannosovic-ethernal marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"crypto/ecdsa"
"errors"
"fmt"
"path/filepath"
"reflect"
"sync"
"time"
Expand All @@ -24,8 +23,6 @@ var (
// ErrAccountAlreadyExists is returned if an account attempted to import is
// already present in the keystore.
ErrAccountAlreadyExists = errors.New("account already exists")

DefaultStorage, _ = filepath.Abs(filepath.Join("data-storage")) //nolint:gocritic
)

var KeyStoreType = reflect.TypeOf(&KeyStore{})
Expand Down
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@

// setup account manager
{
keystore, err := keystore.NewKeyStore(keystore.DefaultStorage, keystore.LightScryptN, keystore.LightScryptP, m.logger)
keystore, err := keystore.NewKeyStore(filepath.Join(config.DataDir, "account-store"), keystore.LightScryptN, keystore.LightScryptP, m.logger)

Check failure on line 350 in server/server.go

View workflow job for this annotation

GitHub Actions / Lint / Run Lint

line is 143 characters (lll)
if err != nil {
return nil, err
}
Expand Down
Loading