mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
Add message warning user a password is needed to unlock
When `mineWhenNeeded` is true (occurs in zero-config) and an account on the node exists, a password is required to be specified `config/blockchain.js > account > password` so that the existing account can be unlocked by geth (the `—unlock` cli option).
This commit is contained in:
parent
898ecfe293
commit
5fe746df51
@ -282,6 +282,9 @@ class GethClient {
|
|||||||
accountAddress = address;
|
accountAddress = address;
|
||||||
}
|
}
|
||||||
if (accountAddress) {
|
if (accountAddress) {
|
||||||
|
if(!(self.config && self.config.account && self.config.account.password)){
|
||||||
|
console.warn(__("\n===== Password needed =====\nPassword for account {{account}} not found. Unlocking this account may fail. Please ensure a password is specified in config/blockchain.js > {{env}} > account > password.\n", {account: address, env: self.env}));
|
||||||
|
}
|
||||||
args.push("--unlock=" + accountAddress);
|
args.push("--unlock=" + accountAddress);
|
||||||
return callback(null, "--unlock=" + accountAddress);
|
return callback(null, "--unlock=" + accountAddress);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user