Merge pull request #863 from embark-framework/bug_fix/minewhenneeded-fixes-2

Geth creates new account - add password warning
This commit is contained in:
Iuri Matias 2018-09-18 13:02:01 -04:00 committed by GitHub
commit 7f66e24b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 ";
}