Use provided datadir
This commit is contained in:
parent
b701005f3b
commit
46399d1905
|
@ -324,9 +324,9 @@ func defaultNodeConfig(installationID string) (*params.NodeConfig, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func ImportAccount(seedPhrase string, backend *api.GethStatusBackend) error {
|
func ImportAccount(seedPhrase string, backend *api.GethStatusBackend) error {
|
||||||
backend.UpdateRootDataDir("./tmp")
|
backend.UpdateRootDataDir(*dataDir)
|
||||||
manager := backend.AccountManager()
|
manager := backend.AccountManager()
|
||||||
if err := manager.InitKeystore("./tmp"); err != nil {
|
if err := manager.InitKeystore(*dataDir); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
err := backend.OpenAccounts()
|
err := backend.OpenAccounts()
|
||||||
|
|
Loading…
Reference in New Issue