filepath fix
This commit is contained in:
parent
8ac7e83305
commit
1be919efa8
|
@ -4,6 +4,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/accounts"
|
"github.com/ethereum/go-ethereum/accounts"
|
||||||
|
@ -24,7 +25,7 @@ func createAccount(password string) (string, string, error) {
|
||||||
if currentNode != nil {
|
if currentNode != nil {
|
||||||
|
|
||||||
w := true
|
w := true
|
||||||
keydir := datadir + "/keystore"
|
keydir := filepath.Join(datadir, "/keystore")
|
||||||
accman := accounts.NewManager(keydir, scryptN, scryptP, accountSync)
|
accman := accounts.NewManager(keydir, scryptN, scryptP, accountSync)
|
||||||
|
|
||||||
// generate the account
|
// generate the account
|
||||||
|
|
Loading…
Reference in New Issue