Merge pull request #95 from VoR0220/develop

Ability to boot enodes from a list in blockchain.yml, support for solc 1.0
This commit is contained in:
Iuri Matias 2015-10-01 22:36:17 -04:00
commit 6fcc9c7481
4 changed files with 19 additions and 2 deletions

View File

@ -14,6 +14,7 @@ development:
account:
init: true
password: config/password
num: 1
staging:
rpc_host: localhost
rpc_port: 8101
@ -22,6 +23,9 @@ staging:
network_id: 0
max_peers: 4
console: true
bootnodes:
boot: false
enodes: [] #insert enode urls here.
account:
init: false
address:
@ -33,6 +37,9 @@ production:
network_id: 1
max_peers: 4
console: true
bootnodes:
boot: false
enodes: []
account:
init: false
address:

View File

@ -75,6 +75,12 @@ Blockchain.prototype.run_command = function(address, use_tmp) {
cmd += "--unlock " + address + " ";
}
if (config.bootNodes.init == true){
cmd += "--bootnodes ";
for (var i = 0; i < config.bootNodes.enodes.length; i++){
cmd += config.bootNodes.enodes[i] + " ";
}
}
if (config.console_toggle) {
cmd += "console";
}

View File

@ -40,7 +40,9 @@ Compiler.prototype.compile_solidity = function(contractFile) {
output = result.output;
if (result.code === 1) {
throw new Error(result.output);
if (version == '0.1.1' || version == '0.1.0'){
throw new Error(result.output);
}
}
json = JSON.parse(output).contracts;

View File

@ -31,6 +31,7 @@ BlockchainConfig.prototype.config = function(env) {
networkId = config.network_id;
}
config = {
rpcHost: config.rpc_host,
rpcPort: config.rpc_port,
@ -41,9 +42,10 @@ BlockchainConfig.prototype.config = function(env) {
genesisBlock: config.genesis_block,
datadir: config.datadir,
chains: config.chains,
bootNodes: config.bootnodes,
deployTimeout: config.deploy_timeout || 20,
networkId: networkId,
maxPeers: 4,
maxPeers: config.max_peers || 4,
port: config.port || "30303",
console_toggle: config.console || false,
mine_when_needed: config.mine_when_needed || false,