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:
emizzle 2018-09-18 16:28:23 +10:00
parent 7ce92211f9
commit d965ba6db9
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ class GethCommands {
}
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 ";
}