mirror of https://github.com/embarklabs/embark.git
Geth creates new account - add password warning
When `isDev` is false, and `mineWhenNeeded` is true, embark attempts to create a new account using `geth account new`, and uses the password file specified in `blockchain/config > accounts > password`. This warning informs the user that the create account command may fail if the password is missing.
This commit is contained in:
parent
7ce92211f9
commit
d965ba6db9
|
@ -63,6 +63,9 @@ class GethCommands {
|
||||||
}
|
}
|
||||||
|
|
||||||
newAccountCommand() {
|
newAccountCommand() {
|
||||||
|
if (!(this.config.account && this.config.account.password)){
|
||||||
|
console.warn(__('Your blockchain is missing a password and creating an account may fail. Please consider updating ').yellow + __('config/blockchain > account > password').cyan + __(' then re-run the command').yellow);
|
||||||
|
}
|
||||||
return this.geth_bin + " " + this.commonOptions().join(' ') + " account new ";
|
return this.geth_bin + " " + this.commonOptions().join(' ') + " account new ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue