change templates to add privatenet
This commit is contained in:
parent
18f60768f9
commit
63cd508e06
|
@ -4,7 +4,6 @@ module.exports = {
|
||||||
networkType: "custom", // Can be: testnet, rinkeby, livenet or custom, in which case, it will use the specified networkId
|
networkType: "custom", // Can be: testnet, rinkeby, livenet or custom, in which case, it will use the specified networkId
|
||||||
networkId: "1337", // Network id used when networkType is custom
|
networkId: "1337", // Network id used when networkType is custom
|
||||||
isDev: true, // Uses and ephemeral proof-of-authority network with a pre-funded developer account, mining enabled
|
isDev: true, // Uses and ephemeral proof-of-authority network with a pre-funded developer account, mining enabled
|
||||||
genesisBlock: "config/development/genesis.json", // Genesis block to initiate on first creation of a development node
|
|
||||||
datadir: ".embark/development/datadir", // Data directory for the databases and keystore
|
datadir: ".embark/development/datadir", // Data directory for the databases and keystore
|
||||||
mineWhenNeeded: true, // Uses our custom script (if isDev is false) to mine only when needed
|
mineWhenNeeded: true, // Uses our custom script (if isDev is false) to mine only when needed
|
||||||
nodiscover: true, // Disables the peer discovery mechanism (manual peer addition)
|
nodiscover: true, // Disables the peer discovery mechanism (manual peer addition)
|
||||||
|
@ -14,10 +13,6 @@ module.exports = {
|
||||||
rpcCorsDomain: "auto", // Comma separated list of domains from which to accept cross origin requests (browser enforced)
|
rpcCorsDomain: "auto", // Comma separated list of domains from which to accept cross origin requests (browser enforced)
|
||||||
// When set to "auto", Embark will automatically set the cors to the address of the webserver
|
// 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
|
proxy: true, // Proxy is used to present meaningful information about transactions
|
||||||
account: {
|
|
||||||
// "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, // Target gas limit sets the artificial target gas floor for the blocks to mine
|
targetGasLimit: 8000000, // Target gas limit sets the artificial target gas floor for the blocks to mine
|
||||||
wsRPC: true, // Enable the WS-RPC server
|
wsRPC: true, // Enable the WS-RPC server
|
||||||
wsOrigins: "auto", // Origins from which to accept websockets requests
|
wsOrigins: "auto", // Origins from which to accept websockets requests
|
||||||
|
@ -27,6 +22,32 @@ module.exports = {
|
||||||
simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", // Mnemonic used by the simulator to generate a wallet
|
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.
|
simulatorBlocktime: 0 // Specify blockTime in seconds for automatic mining. Default is 0 and no auto-mining.
|
||||||
},
|
},
|
||||||
|
privatenet: {
|
||||||
|
enabled: true,
|
||||||
|
networkType: "custom",
|
||||||
|
networkId: "1337",
|
||||||
|
isDev: false,
|
||||||
|
genesisBlock: "config/privatenet/genesis.json", // Genesis block to initiate on first creation of a development node
|
||||||
|
datadir: ".embark/privatenet/datadir",
|
||||||
|
mineWhenNeeded: true,
|
||||||
|
nodiscover: true,
|
||||||
|
maxpeers: 0,
|
||||||
|
rpcHost: "localhost",
|
||||||
|
rpcPort: 8545,
|
||||||
|
rpcCorsDomain: "auto",
|
||||||
|
proxy: true,
|
||||||
|
account: {
|
||||||
|
// "address": "", // When specified, uses that address instead of the default one for the network
|
||||||
|
password: "config/privatenet/password" // Password to unlock the account
|
||||||
|
},
|
||||||
|
targetGasLimit: 8000000,
|
||||||
|
wsRPC: true,
|
||||||
|
wsOrigins: "auto",
|
||||||
|
wsHost: "localhost",
|
||||||
|
wsPort: 8546,
|
||||||
|
simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm",
|
||||||
|
simulatorBlocktime: 0
|
||||||
|
},
|
||||||
testnet: {
|
testnet: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
networkType: "testnet",
|
networkType: "testnet",
|
||||||
|
@ -48,15 +69,5 @@ module.exports = {
|
||||||
account: {
|
account: {
|
||||||
password: "config/livenet/password"
|
password: "config/livenet/password"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
privatenet: {
|
|
||||||
enabled: true,
|
|
||||||
networkType: "custom",
|
|
||||||
rpcHost: "localhost",
|
|
||||||
rpcPort: 8545,
|
|
||||||
rpcCorsDomain: "http://localhost:8000",
|
|
||||||
datadir: "yourdatadir",
|
|
||||||
networkId: "123",
|
|
||||||
bootnodes: ""
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,7 +4,6 @@ module.exports = {
|
||||||
networkType: "custom", // Can be: testnet, rinkeby, livenet or custom, in which case, it will use the specified networkId
|
networkType: "custom", // Can be: testnet, rinkeby, livenet or custom, in which case, it will use the specified networkId
|
||||||
networkId: "1337", // Network id used when networkType is custom
|
networkId: "1337", // Network id used when networkType is custom
|
||||||
isDev: true, // Uses and ephemeral proof-of-authority network with a pre-funded developer account, mining enabled
|
isDev: true, // Uses and ephemeral proof-of-authority network with a pre-funded developer account, mining enabled
|
||||||
genesisBlock: "config/development/genesis.json", // Genesis block to initiate on first creation of a development node
|
|
||||||
datadir: ".embark/development/datadir", // Data directory for the databases and keystore
|
datadir: ".embark/development/datadir", // Data directory for the databases and keystore
|
||||||
mineWhenNeeded: true, // Uses our custom script (if isDev is false) to mine only when needed
|
mineWhenNeeded: true, // Uses our custom script (if isDev is false) to mine only when needed
|
||||||
nodiscover: true, // Disables the peer discovery mechanism (manual peer addition)
|
nodiscover: true, // Disables the peer discovery mechanism (manual peer addition)
|
||||||
|
@ -14,10 +13,6 @@ module.exports = {
|
||||||
rpcCorsDomain: "auto", // Comma separated list of domains from which to accept cross origin requests (browser enforced)
|
rpcCorsDomain: "auto", // Comma separated list of domains from which to accept cross origin requests (browser enforced)
|
||||||
// When set to "auto", Embark will automatically set the cors to the address of the webserver
|
// 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
|
proxy: true, // Proxy is used to present meaningful information about transactions
|
||||||
account: {
|
|
||||||
// "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, // Target gas limit sets the artificial target gas floor for the blocks to mine
|
targetGasLimit: 8000000, // Target gas limit sets the artificial target gas floor for the blocks to mine
|
||||||
wsRPC: true, // Enable the WS-RPC server
|
wsRPC: true, // Enable the WS-RPC server
|
||||||
wsOrigins: "auto", // Origins from which to accept websockets requests
|
wsOrigins: "auto", // Origins from which to accept websockets requests
|
||||||
|
@ -27,6 +22,32 @@ module.exports = {
|
||||||
simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", // Mnemonic used by the simulator to generate a wallet
|
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.
|
simulatorBlocktime: 0 // Specify blockTime in seconds for automatic mining. Default is 0 and no auto-mining.
|
||||||
},
|
},
|
||||||
|
privatenet: {
|
||||||
|
enabled: true,
|
||||||
|
networkType: "custom",
|
||||||
|
networkId: "1337",
|
||||||
|
isDev: false,
|
||||||
|
genesisBlock: "config/privatenet/genesis.json", // Genesis block to initiate on first creation of a development node
|
||||||
|
datadir: ".embark/privatenet/datadir",
|
||||||
|
mineWhenNeeded: true,
|
||||||
|
nodiscover: true,
|
||||||
|
maxpeers: 0,
|
||||||
|
rpcHost: "localhost",
|
||||||
|
rpcPort: 8545,
|
||||||
|
rpcCorsDomain: "auto",
|
||||||
|
proxy: true,
|
||||||
|
account: {
|
||||||
|
// "address": "", // When specified, uses that address instead of the default one for the network
|
||||||
|
password: "config/privatenet/password" // Password to unlock the account
|
||||||
|
},
|
||||||
|
targetGasLimit: 8000000,
|
||||||
|
wsRPC: true,
|
||||||
|
wsOrigins: "auto",
|
||||||
|
wsHost: "localhost",
|
||||||
|
wsPort: 8546,
|
||||||
|
simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm",
|
||||||
|
simulatorBlocktime: 0
|
||||||
|
},
|
||||||
testnet: {
|
testnet: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
networkType: "testnet",
|
networkType: "testnet",
|
||||||
|
@ -48,15 +69,5 @@ module.exports = {
|
||||||
account: {
|
account: {
|
||||||
password: "config/livenet/password"
|
password: "config/livenet/password"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
privatenet: {
|
|
||||||
enabled: true,
|
|
||||||
networkType: "custom",
|
|
||||||
rpcHost: "localhost",
|
|
||||||
rpcPort: 8545,
|
|
||||||
rpcCorsDomain: "http://localhost:8000",
|
|
||||||
datadir: "yourdatadir",
|
|
||||||
networkId: "123",
|
|
||||||
bootnodes: ""
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"networkType": "custom",
|
"networkType": "custom",
|
||||||
"networkId": "1337",
|
"networkId": "1337",
|
||||||
"isDev": false,
|
"isDev": true,
|
||||||
"genesisBlock": "development/genesis.json",
|
|
||||||
"datadir": ".embark/development/datadir",
|
"datadir": ".embark/development/datadir",
|
||||||
"mineWhenNeeded": true,
|
"mineWhenNeeded": true,
|
||||||
"nodiscover": true,
|
"nodiscover": true,
|
||||||
|
@ -12,15 +11,32 @@
|
||||||
"rpcHost": "localhost",
|
"rpcHost": "localhost",
|
||||||
"rpcPort": 8545,
|
"rpcPort": 8545,
|
||||||
"rpcCorsDomain": "auto",
|
"rpcCorsDomain": "auto",
|
||||||
|
"targetGasLimit": 8000000,
|
||||||
|
"wsOrigins": "auto",
|
||||||
|
"wsRPC": true,
|
||||||
|
"wsHost": "localhost",
|
||||||
|
"wsPort": 8546
|
||||||
|
},
|
||||||
|
"privateNet": {
|
||||||
|
"networkType": "custom",
|
||||||
|
"networkId": "1337",
|
||||||
|
"isDev": false,
|
||||||
|
"genesisBlock": "privateNet/genesis.json",
|
||||||
|
"datadir": ".embark/privateNet/datadir",
|
||||||
|
"mineWhenNeeded": true,
|
||||||
|
"nodiscover": true,
|
||||||
|
"maxpeers": 0,
|
||||||
|
"rpcHost": "localhost",
|
||||||
|
"rpcPort": 8545,
|
||||||
|
"rpcCorsDomain": "auto",
|
||||||
"account": {
|
"account": {
|
||||||
"password": "development/password"
|
"password": "privateNet/password"
|
||||||
},
|
},
|
||||||
"targetGasLimit": 8000000,
|
"targetGasLimit": 8000000,
|
||||||
"wsOrigins": "auto",
|
"wsOrigins": "auto",
|
||||||
"wsRPC": true,
|
"wsRPC": true,
|
||||||
"wsHost": "localhost",
|
"wsHost": "localhost",
|
||||||
"wsPort": 8546
|
"wsPort": 8546
|
||||||
|
|
||||||
},
|
},
|
||||||
"testnet": {
|
"testnet": {
|
||||||
"networkType": "testnet",
|
"networkType": "testnet",
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"networkType": "custom",
|
"networkType": "custom",
|
||||||
"networkId": "1337",
|
"networkId": "1337",
|
||||||
"isDev": false,
|
"isDev": true,
|
||||||
"genesisBlock": "config/development/genesis.json",
|
|
||||||
"datadir": ".embark/development/datadir",
|
"datadir": ".embark/development/datadir",
|
||||||
"mineWhenNeeded": true,
|
"mineWhenNeeded": true,
|
||||||
"nodiscover": true,
|
"nodiscover": true,
|
||||||
|
@ -12,10 +11,30 @@
|
||||||
"rpcHost": "localhost",
|
"rpcHost": "localhost",
|
||||||
"rpcPort": 8545,
|
"rpcPort": 8545,
|
||||||
"rpcCorsDomain": "auto",
|
"rpcCorsDomain": "auto",
|
||||||
|
"targetGasLimit": 8000000,
|
||||||
|
"wsOrigins": "auto",
|
||||||
|
"wsRPC": true,
|
||||||
|
"wsHost": "localhost",
|
||||||
|
"wsPort": 8546,
|
||||||
|
"proxy": true
|
||||||
|
},
|
||||||
|
"privateNet": {
|
||||||
|
"enabled": true,
|
||||||
|
"networkType": "custom",
|
||||||
|
"networkId": "1337",
|
||||||
|
"isDev": false,
|
||||||
|
"genesisBlock": "config/privateNet/genesis.json",
|
||||||
|
"datadir": ".embark/privateNet/datadir",
|
||||||
|
"mineWhenNeeded": true,
|
||||||
|
"nodiscover": true,
|
||||||
|
"maxpeers": 0,
|
||||||
|
"rpcHost": "localhost",
|
||||||
|
"rpcPort": 8545,
|
||||||
|
"rpcCorsDomain": "auto",
|
||||||
"account": {
|
"account": {
|
||||||
"numAccounts": 3,
|
"numAccounts": 3,
|
||||||
"balance": "5 ether",
|
"balance": "5 ether",
|
||||||
"password": "config/development/password"
|
"password": "config/privateNet/password"
|
||||||
},
|
},
|
||||||
"targetGasLimit": 8000000,
|
"targetGasLimit": 8000000,
|
||||||
"wsOrigins": "auto",
|
"wsOrigins": "auto",
|
||||||
|
|
Loading…
Reference in New Issue