mirror of https://github.com/embarklabs/embark.git
increase default gas value; add parameters
This commit is contained in:
parent
61470a32d7
commit
32d63514bf
|
@ -13,6 +13,7 @@
|
|||
"account": {
|
||||
"password": "config/development/password"
|
||||
},
|
||||
"targetGasLimit": 8000000,
|
||||
"wsOrigins": "http://localhost:8000",
|
||||
"wsRPC": true,
|
||||
"wsHost": "localhost",
|
||||
|
|
|
@ -12,5 +12,5 @@
|
|||
"timestamp": "0x00",
|
||||
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"extraData": "0x",
|
||||
"gasLimit": "0x4c4b40"
|
||||
"gasLimit": "0x7a1200"
|
||||
}
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
"account": {
|
||||
"password": "config/development/password"
|
||||
},
|
||||
"targetGasLimit": 8000000,
|
||||
"wsOrigins": "http://localhost:8000",
|
||||
"wsRPC": true,
|
||||
"wsHost": "localhost",
|
||||
|
|
|
@ -12,5 +12,5 @@
|
|||
"timestamp": "0x00",
|
||||
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"extraData": "0x",
|
||||
"gasLimit": "0x4c4b40"
|
||||
"gasLimit": "0x7a1200"
|
||||
}
|
||||
|
|
|
@ -37,7 +37,8 @@ var Blockchain = function(options) {
|
|||
wsPort: this.blockchainConfig.wsPort || 8546,
|
||||
wsOrigins: this.blockchainConfig.wsOrigins || false,
|
||||
wsApi: (this.blockchainConfig.wsApi || ['eth', 'web3', 'net', 'shh']),
|
||||
vmdebug: this.blockchainConfig.vmdebug || false
|
||||
vmdebug: this.blockchainConfig.vmdebug || false,
|
||||
targetGasLimit: this.blockchainConfig.targetGasLimit || false
|
||||
};
|
||||
|
||||
if (this.blockchainConfig === {} || JSON.stringify(this.blockchainConfig) === '{"enabled":true}') {
|
||||
|
|
|
@ -193,6 +193,12 @@ class GethCommands {
|
|||
}
|
||||
callback(null, "");
|
||||
},
|
||||
function gasLimit(callback) {
|
||||
if (config.targetGasLimit) {
|
||||
return callback(null, "--targetgaslimit " + config.targetGasLimit);
|
||||
}
|
||||
callback(null, "");
|
||||
},
|
||||
function mineWhenNeeded(callback) {
|
||||
if (config.mineWhenNeeded) {
|
||||
return callback(null, "js .embark/" + self.env + "/js/mine.js");
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
"account": {
|
||||
"password": "config/development/password"
|
||||
},
|
||||
"targetGasLimit": 8000000,
|
||||
"wsOrigins": "http://localhost:8000",
|
||||
"wsRPC": true,
|
||||
"wsHost": "localhost",
|
||||
|
|
|
@ -12,5 +12,5 @@
|
|||
"timestamp": "0x00",
|
||||
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"extraData": "0x",
|
||||
"gasLimit": "0x4c4b40"
|
||||
"gasLimit": "0x7a1200"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue