embark/dapps/templates/demo/config/blockchain.js

80 lines
2.4 KiB
JavaScript
Raw Normal View History

// This file contains only the basic configuration you need to run Embark's node
2020-01-19 20:19:30 +00:00
// For additional configurations, see: https://framework.embarklabs.io/docs/blockchain_configuration.html
2018-06-12 16:59:31 +00:00
module.exports = {
// default applies to all environments
2018-08-15 21:01:41 +00:00
default: {
2018-06-12 16:59:31 +00:00
enabled: true,
client: "geth" // Can be ganache-cli, geth or parity (default: geth)
2018-08-15 21:01:41 +00:00
},
2018-08-21 18:44:58 +00:00
2018-08-15 21:01:41 +00:00
development: {
client: 'ganache-cli',
clientConfig: {
miningMode: 'dev' // Mode in which the node mines. Options: dev, auto, always, off
}
2018-06-12 16:59:31 +00:00
},
2018-08-21 18:44:58 +00:00
2018-06-28 14:40:40 +00:00
privatenet: {
// Accounts to use as node accounts
// The order here corresponds to the order of `web3.eth.getAccounts`, so the first one is the `defaultAccount`
2020-01-19 20:19:30 +00:00
// For more account configurations, see: https://framework.embarklabs.io/docs/blockchain_accounts_configuration.html
accounts: [
{
nodeAccounts: true, // Accounts use for the node
numAddresses: "1", // Number of addresses/accounts (defaults to 1)
password: "config/development/password" // Password file for the accounts
}
],
clientConfig: {
datadir: ".embark/privatenet/datadir", // Data directory for the databases and keystore
miningMode: 'auto',
genesisBlock: "config/privatenet/genesis.json" // Genesis block to initiate on first creation of a development node
}
2018-06-28 14:40:40 +00:00
},
2018-08-21 18:44:58 +00:00
privateparitynet: {
client: "parity",
genesisBlock: "config/privatenet/genesis-parity.json",
datadir: ".embark/privatenet/datadir",
miningMode: 'off'
},
externalnode: {
endpoint: "URL_OF_THE_NODE", // Endpoint of an node to connect to. Can be on localhost or on the internet
accounts: [
{
mnemonic: "YOUR_MNEMONIC",
hdpath: "m/44'/60'/0'/0/",
numAddresses: "1"
}
]
},
2018-06-12 16:59:31 +00:00
testnet: {
networkType: "testnet", // Can be: testnet(ropsten), rinkeby, livenet or custom, in which case, it will use the specified networkId
syncMode: "light",
accounts: [
{
nodeAccounts: true,
password: "config/testnet/password"
}
]
2018-06-12 16:59:31 +00:00
},
2018-08-21 18:44:58 +00:00
2018-06-12 16:59:31 +00:00
livenet: {
networkType: "livenet",
syncMode: "light",
accounts: [
{
nodeAccounts: true,
password: "config/livenet/password"
}
]
}
2018-08-21 18:44:58 +00:00
// you can name an environment with specific settings and then specify with
// "embark run custom_name" or "embark blockchain custom_name"
//custom_name: {
//}
2018-06-18 19:40:06 +00:00
};