mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-17 09:46:37 +00:00
Merge pull request #89 from FinclusionSystems/develop
show grunt stacktrace
This commit is contained in:
commit
0c233d968d
@ -258,6 +258,7 @@ The environment is a specific blockchain configuration that can be managed at co
|
|||||||
chains: chains_staging.json
|
chains: chains_staging.json
|
||||||
network_id: 0
|
network_id: 0
|
||||||
console: true
|
console: true
|
||||||
|
geth_extra_opts: --vmdebug
|
||||||
account:
|
account:
|
||||||
init: false
|
init: false
|
||||||
address: 0x123
|
address: 0x123
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
module.exports = (grunt) ->
|
module.exports = (grunt) ->
|
||||||
|
|
||||||
|
grunt.option 'stack', true
|
||||||
grunt.loadNpmTasks "grunt-embark"
|
grunt.loadNpmTasks "grunt-embark"
|
||||||
grunt.loadTasks "tasks"
|
grunt.loadTasks "tasks"
|
||||||
|
|
||||||
@ -111,4 +112,3 @@ module.exports = (grunt) ->
|
|||||||
|
|
||||||
grunt.registerTask "deploy", ["coffee", "deploy_contracts", "concat", "copy", "server", "watch"]
|
grunt.registerTask "deploy", ["coffee", "deploy_contracts", "concat", "copy", "server", "watch"]
|
||||||
grunt.registerTask "build", ["clean", "deploy_contracts", "coffee", "concat", "uglify", "copy"]
|
grunt.registerTask "build", ["clean", "deploy_contracts", "coffee", "concat", "uglify", "copy"]
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@ Blockchain.prototype.generate_basic_command = function() {
|
|||||||
cmd += "--logfile=\"" + config.datadir + ".log\" ";
|
cmd += "--logfile=\"" + config.datadir + ".log\" ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.geth_extra_opts) {
|
||||||
|
cmd += config.geth_extra_opts + " ";
|
||||||
|
}
|
||||||
|
|
||||||
cmd += "--port " + config.port + " ";
|
cmd += "--port " + config.port + " ";
|
||||||
cmd += "--rpc ";
|
cmd += "--rpc ";
|
||||||
cmd += "--rpcport " + config.rpcPort + " ";
|
cmd += "--rpcport " + config.rpcPort + " ";
|
||||||
|
@ -28,7 +28,11 @@ ChainManager.prototype.loadConfig = function(config) {
|
|||||||
ChainManager.prototype.init = function(env, config) {
|
ChainManager.prototype.init = function(env, config) {
|
||||||
web3.setProvider(new web3.providers.HttpProvider("http://" + config.rpcHost + ":" + config.rpcPort));
|
web3.setProvider(new web3.providers.HttpProvider("http://" + config.rpcHost + ":" + config.rpcPort));
|
||||||
|
|
||||||
var chainId = web3.eth.getBlock(0).hash;
|
var block = web3.eth.getBlock(0);
|
||||||
|
if(!block){
|
||||||
|
throw new Error("Cannot get the genesis block, is embark blockchain running ?");
|
||||||
|
}
|
||||||
|
var chainId = block.hash;
|
||||||
|
|
||||||
if (this.chainManagerConfig[chainId] === undefined) {
|
if (this.chainManagerConfig[chainId] === undefined) {
|
||||||
this.chainManagerConfig[chainId] = {contracts: {}};
|
this.chainManagerConfig[chainId] = {contracts: {}};
|
||||||
|
@ -48,7 +48,8 @@ BlockchainConfig.prototype.config = function(env) {
|
|||||||
console_toggle: config.console || false,
|
console_toggle: config.console || false,
|
||||||
mine_when_needed: config.mine_when_needed || false,
|
mine_when_needed: config.mine_when_needed || false,
|
||||||
whisper: config.whisper || false,
|
whisper: config.whisper || false,
|
||||||
account: config.account
|
account: config.account,
|
||||||
|
geth_extra_opts: config.geth_extra_opts
|
||||||
}
|
}
|
||||||
|
|
||||||
return config;
|
return config;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user