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": {
|
"account": {
|
||||||
"password": "config/development/password"
|
"password": "config/development/password"
|
||||||
},
|
},
|
||||||
|
"targetGasLimit": 8000000,
|
||||||
"wsOrigins": "http://localhost:8000",
|
"wsOrigins": "http://localhost:8000",
|
||||||
"wsRPC": true,
|
"wsRPC": true,
|
||||||
"wsHost": "localhost",
|
"wsHost": "localhost",
|
||||||
|
|
|
@ -12,5 +12,5 @@
|
||||||
"timestamp": "0x00",
|
"timestamp": "0x00",
|
||||||
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
"extraData": "0x",
|
"extraData": "0x",
|
||||||
"gasLimit": "0x4c4b40"
|
"gasLimit": "0x7a1200"
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
"account": {
|
"account": {
|
||||||
"password": "config/development/password"
|
"password": "config/development/password"
|
||||||
},
|
},
|
||||||
|
"targetGasLimit": 8000000,
|
||||||
"wsOrigins": "http://localhost:8000",
|
"wsOrigins": "http://localhost:8000",
|
||||||
"wsRPC": true,
|
"wsRPC": true,
|
||||||
"wsHost": "localhost",
|
"wsHost": "localhost",
|
||||||
|
|
|
@ -12,5 +12,5 @@
|
||||||
"timestamp": "0x00",
|
"timestamp": "0x00",
|
||||||
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
"extraData": "0x",
|
"extraData": "0x",
|
||||||
"gasLimit": "0x4c4b40"
|
"gasLimit": "0x7a1200"
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,8 @@ var Blockchain = function(options) {
|
||||||
wsPort: this.blockchainConfig.wsPort || 8546,
|
wsPort: this.blockchainConfig.wsPort || 8546,
|
||||||
wsOrigins: this.blockchainConfig.wsOrigins || false,
|
wsOrigins: this.blockchainConfig.wsOrigins || false,
|
||||||
wsApi: (this.blockchainConfig.wsApi || ['eth', 'web3', 'net', 'shh']),
|
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}') {
|
if (this.blockchainConfig === {} || JSON.stringify(this.blockchainConfig) === '{"enabled":true}') {
|
||||||
|
|
|
@ -193,6 +193,12 @@ class GethCommands {
|
||||||
}
|
}
|
||||||
callback(null, "");
|
callback(null, "");
|
||||||
},
|
},
|
||||||
|
function gasLimit(callback) {
|
||||||
|
if (config.targetGasLimit) {
|
||||||
|
return callback(null, "--targetgaslimit " + config.targetGasLimit);
|
||||||
|
}
|
||||||
|
callback(null, "");
|
||||||
|
},
|
||||||
function mineWhenNeeded(callback) {
|
function mineWhenNeeded(callback) {
|
||||||
if (config.mineWhenNeeded) {
|
if (config.mineWhenNeeded) {
|
||||||
return callback(null, "js .embark/" + self.env + "/js/mine.js");
|
return callback(null, "js .embark/" + self.env + "/js/mine.js");
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
"account": {
|
"account": {
|
||||||
"password": "config/development/password"
|
"password": "config/development/password"
|
||||||
},
|
},
|
||||||
|
"targetGasLimit": 8000000,
|
||||||
"wsOrigins": "http://localhost:8000",
|
"wsOrigins": "http://localhost:8000",
|
||||||
"wsRPC": true,
|
"wsRPC": true,
|
||||||
"wsHost": "localhost",
|
"wsHost": "localhost",
|
||||||
|
|
|
@ -12,5 +12,5 @@
|
||||||
"timestamp": "0x00",
|
"timestamp": "0x00",
|
||||||
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
||||||
"extraData": "0x",
|
"extraData": "0x",
|
||||||
"gasLimit": "0x4c4b40"
|
"gasLimit": "0x7a1200"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue