mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-09 21:35:58 +00:00
bd4b110a78
Add option in communication config to choose which Whisper client to use. Because Parity’s implementation of Whisper is not compatible with Whisper v6, and therefore web3.js in its current form, the following changes have been made: 1. remove any functionality associated with launching a Parity Whisper process. 2. Warn the user when the Parity Whisper client has been opted for in the communication config. 3. Return an error for API calls when Parity Whisper client has been opted for in the communication config. 4. Update Cockpit’s Communication module to show errors returned from API calls. 5. Update the messaging configuration documentation for the new communication client option.
48 lines
1.3 KiB
JavaScript
48 lines
1.3 KiB
JavaScript
module.exports = {
|
|
// default applies to all environments
|
|
default: {
|
|
enabled: true,
|
|
provider: "whisper", // Communication provider. Currently, Embark only supports whisper
|
|
available_providers: ["whisper"], // Array of available providers
|
|
client: "geth"
|
|
},
|
|
|
|
// default environment, merges with the settings in default
|
|
// assumed to be the intended environment by `embark run`
|
|
development: {
|
|
connection: {
|
|
host: "localhost", // Host of the provider node
|
|
port: 8547, // Port of the provider node
|
|
type: "ws" // Type of connection (ws or rpc)
|
|
}
|
|
},
|
|
|
|
// merges with the settings in default
|
|
// used with "embark run privatenet"
|
|
privatenet: {
|
|
},
|
|
|
|
// merges with the settings in default
|
|
// used with "embark run testnet"
|
|
testnet: {
|
|
},
|
|
|
|
// merges with the settings in default
|
|
// used with "embark run livenet"
|
|
livenet: {
|
|
},
|
|
|
|
// you can name an environment with specific settings and then specify with
|
|
// "embark run custom_name"
|
|
//custom_name: {
|
|
//}
|
|
// Use this section when you need a specific symmetric or private keys in whisper
|
|
/*
|
|
,keys: {
|
|
symmetricKey: "your_symmetric_key",// Symmetric key for message decryption
|
|
privateKey: "your_private_key" // Private Key to be used as a signing key and for message decryption
|
|
}
|
|
*/
|
|
//}
|
|
};
|