/ config / blockchain.js
blockchain.js
 1  module.exports = {
 2    development: {
 3      enabled: true,
 4      networkType: "custom", // Can be: testnet, rinkeby, livenet or custom, in which case, it will use the specified networkId
 5      networkId: "1337", // Network id used when networkType is custom
 6      isDev: true, // Uses and ephemeral proof-of-authority network with a pre-funded developer account, mining enabled
 7      genesisBlock: "config/development/genesis.json", // Genesis block to initiate on first creation of a development node
 8      datadir: ".embark/development/datadir", // Data directory for the databases and keystore
 9      mineWhenNeeded: true, // Uses our custom script (if isDev is false) to mine only when needed
10      nodiscover: true, // Disables the peer discovery mechanism (manual peer addition)
11      maxpeers: 0, // Maximum number of network peers (network disabled if set to 0) (default: 25)
12      rpcHost: "localhost", // HTTP-RPC server listening interface (default: "localhost")
13      rpcPort: 8545, // HTTP-RPC server listening port (default: 8545)
14      rpcCorsDomain: "auto",  // Comma separated list of domains from which to accept cross origin requests (browser enforced)
15                              // When set to "auto", Embark will automatically set the cors to the address of the webserver
16      proxy: true, // Proxy is used to present meaningful information about transactions
17      account: {
18        // "address": "", // When specified, uses that address instead of the default one for the network
19        password: "config/development/password" // Password to unlock the account
20      },
21      targetGasLimit: 8000000, // Target gas limit sets the artificial target gas floor for the blocks to mine
22      wsRPC: true, // Enable the WS-RPC server
23      wsOrigins: "auto",  // Origins from which to accept websockets requests
24                          // When set to "auto", Embark will automatically set the cors to the address of the webserver
25      wsHost: "localhost", // WS-RPC server listening interface (default: "localhost")
26      wsPort: 8546, // WS-RPC server listening port (default: 8546)
27      simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", // Mnemonic  used by the simulator to generate a wallet
28      simulatorBlocktime: 0 // Specify blockTime in seconds for automatic mining. Default is 0 and no auto-mining.
29    },
30    testnet: {
31      enabled: true,
32      proxy: false,
33      networkType: "testnet",
34      syncMode: "light",
35      rpcHost: "localhost",
36      rpcPort: 8545,
37      rpcCorsDomain: "http://localhost:8000",
38      account: {
39        password: "config/testnet/password"
40      }
41    },
42    livenet: {
43      enabled: true,
44      proxy: false,
45      networkType: "livenet",
46      syncMode: "light",
47      rpcHost: "localhost",
48      rpcPort: 8545,
49      rpcCorsDomain: "http://localhost:8000",
50      account: {
51        password: "config/livenet/password"
52      }
53    },
54    privatenet: {
55      enabled: true,
56      networkType: "custom",
57      rpcHost: "localhost",
58      rpcPort: 8545,
59      rpcCorsDomain: "http://localhost:8000",
60      datadir: "yourdatadir",
61      networkId: "123",
62      bootnodes: ""
63    }
64  };