add comments in blockchain configs

This commit is contained in:
Jonathan Rainville 2018-06-18 15:40:06 -04:00
parent 3d9a006ecc
commit c1540dc2ea
2 changed files with 48 additions and 42 deletions

View File

@ -1,28 +1,31 @@
module.exports = { module.exports = {
development: { development: {
enabled: true, enabled: true,
networkType: "custom", networkType: "custom", // Can be: testnet, rinkeby, livenet or custom, in which case, it will use the specified networkId
networkId: "1337", networkId: "1337", // Network id used when networkType is custom
isDev: true, isDev: true, // Uses and ephemeral proof-of-authority network with a pre-funded developer account, mining enabled
genesisBlock: "config/development/genesis.json", genesisBlock: "config/development/genesis.json", // Genesis block to initiate on first creation of a development node
datadir: ".embark/development/datadir", datadir: ".embark/development/datadir", // Data directory for the databases and keystore
mineWhenNeeded: true, mineWhenNeeded: true, // Uses our custom script (if isDev is false) to mine only when needed
nodiscover: true, nodiscover: true, // Disables the peer discovery mechanism (manual peer addition)
maxpeers: 0, maxpeers: 0, // Maximum number of network peers (network disabled if set to 0) (default: 25)
rpcHost: "localhost", rpcHost: "localhost", // HTTP-RPC server listening interface (default: "localhost")
rpcPort: 8545, rpcPort: 8545, // HTTP-RPC server listening port (default: 8545)
rpcCorsDomain: "auto", rpcCorsDomain: "auto", // Comma separated list of domains from which to accept cross origin requests (browser enforced)
proxy: true, // When set to "auto", Embark will automatically set the cors to the address of the webserver
proxy: true, // Proxy is used to present meaningful information about transactions
account: { account: {
password: "config/development/password" // "address": "", // When specified, uses that address instead of the default one for the network
password: "config/development/password" // Password to unlock the account
}, },
targetGasLimit: 8000000, targetGasLimit: 8000000, // Target gas limit sets the artificial target gas floor for the blocks to mine
wsOrigins: "auto", wsRPC: true, // Enable the WS-RPC server
wsRPC: true, wsOrigins: "auto", // Origins from which to accept websockets requests
wsHost: "localhost", // When set to "auto", Embark will automatically set the cors to the address of the webserver
wsPort: 8546, wsHost: "localhost", // WS-RPC server listening interface (default: "localhost")
simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", wsPort: 8546, // WS-RPC server listening port (default: 8546)
simulatorBlocktime: 0 simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", // Mnemonic used by the simulator to generate a wallet
simulatorBlocktime: 0 // Specify blockTime in seconds for automatic mining. Default is 0 and no auto-mining.
}, },
testnet: { testnet: {
enabled: true, enabled: true,
@ -56,4 +59,4 @@ module.exports = {
networkId: "123", networkId: "123",
bootnodes: "" bootnodes: ""
} }
} };

View File

@ -1,28 +1,31 @@
module.exports = { module.exports = {
development: { development: {
enabled: true, enabled: true,
networkType: "custom", networkType: "custom", // Can be: testnet, rinkeby, livenet or custom, in which case, it will use the specified networkId
networkId: "1337", networkId: "1337", // Network id used when networkType is custom
isDev: true, isDev: true, // Uses and ephemeral proof-of-authority network with a pre-funded developer account, mining enabled
genesisBlock: "config/development/genesis.json", genesisBlock: "config/development/genesis.json", // Genesis block to initiate on first creation of a development node
datadir: ".embark/development/datadir", datadir: ".embark/development/datadir", // Data directory for the databases and keystore
mineWhenNeeded: true, mineWhenNeeded: true, // Uses our custom script (if isDev is false) to mine only when needed
nodiscover: true, nodiscover: true, // Disables the peer discovery mechanism (manual peer addition)
maxpeers: 0, maxpeers: 0, // Maximum number of network peers (network disabled if set to 0) (default: 25)
rpcHost: "localhost", rpcHost: "localhost", // HTTP-RPC server listening interface (default: "localhost")
rpcPort: 8545, rpcPort: 8545, // HTTP-RPC server listening port (default: 8545)
rpcCorsDomain: "auto", rpcCorsDomain: "auto", // Comma separated list of domains from which to accept cross origin requests (browser enforced)
proxy: true, // When set to "auto", Embark will automatically set the cors to the address of the webserver
proxy: true, // Proxy is used to present meaningful information about transactions
account: { account: {
password: "config/development/password" // "address": "", // When specified, uses that address instead of the default one for the network
password: "config/development/password" // Password to unlock the account
}, },
targetGasLimit: 8000000, targetGasLimit: 8000000, // Target gas limit sets the artificial target gas floor for the blocks to mine
wsOrigins: "auto", wsRPC: true, // Enable the WS-RPC server
wsRPC: true, wsOrigins: "auto", // Origins from which to accept websockets requests
wsHost: "localhost", // When set to "auto", Embark will automatically set the cors to the address of the webserver
wsPort: 8546, wsHost: "localhost", // WS-RPC server listening interface (default: "localhost")
simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", wsPort: 8546, // WS-RPC server listening port (default: 8546)
simulatorBlocktime: 0 simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", // Mnemonic used by the simulator to generate a wallet
simulatorBlocktime: 0 // Specify blockTime in seconds for automatic mining. Default is 0 and no auto-mining.
}, },
testnet: { testnet: {
enabled: true, enabled: true,
@ -56,4 +59,4 @@ module.exports = {
networkId: "123", networkId: "123",
bootnodes: "" bootnodes: ""
} }
} };