mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-09 13:26:10 +00:00
chore(@embark/whisper): add warning if comm port is the same as node
Co-Authored-By: Eric Mastro <ericmastro@status.im>
This commit is contained in:
parent
23f9a8c49c
commit
14dbb63775
@ -22,6 +22,11 @@ class Whisper {
|
||||
});
|
||||
|
||||
this.events.request("communication:node:register", "whisper", (readyCb) => {
|
||||
if (this.communicationConfig.connection.port === this.embark.config.blockchainConfig.wsPort) {
|
||||
this.logger.warn(__('Communication connection set to open on port %s, which is the same as your blockchain node. It will probably conflict', this.communicationConfig.connection.port));
|
||||
this.logger.warn(__('You can change that port in your communication config file as `connection.port`'));
|
||||
}
|
||||
|
||||
let clientName = this.communicationConfig.client || "geth";
|
||||
let registerCb = this.whisperNodes[clientName];
|
||||
if (!registerCb) return readyCb("whisper client " + clientName + " not found");
|
||||
|
Loading…
x
Reference in New Issue
Block a user