diff --git a/sample/config.json.template b/sample/config.json.template new file mode 100755 index 0000000000..71f86cc670 --- /dev/null +++ b/sample/config.json.template @@ -0,0 +1,29 @@ +{ + "sealEngine": "PBFT", + "systemproxyaddress":"0x0", + "systemproxyaddressDfsFile":"", + "systemproxyaddressDfsServer":"", + "listenip":"{ip}", + "rpcport":"{rpcport}", + "p2pport":"{p2pport}", + "wallet":"{nodedir}keys.info", + "keystoredir":"{nodedir}keystore/", + "datadir":"{nodedir}data/", + "vm":"interpreter", + "networkid":"{networkid}", + "logverbosity":"4", + "coverlog":"OFF", + "eventlog":"ON", + "logconf":"{nodedir}log.conf", + "dfsNode":"", + "dfsGroup":"group1", + "dfsStorage":"filestorage", + "params": { + "accountStartNonce": "0x0", + "maximumExtraDataSize": "0x0", + "tieBreakingGas": false, + "blockReward": "0x0", + "networkID" : "0x0" + }, + "NodeextraInfo":{nodeextrainfo} +} diff --git a/sample/genesis.json.template b/sample/genesis.json.template new file mode 100755 index 0000000000..df6527d313 --- /dev/null +++ b/sample/genesis.json.template @@ -0,0 +1,13 @@ +{ + "nonce": "0x0", + "difficulty": "0x0", + "mixhash": "0x0", + "coinbase": "0x0", + "timestamp": "0x0", + "parentHash": "0x0", + "extraData": "0x0", + "gasLimit": "0x13880000000000", + "god":"{admin}", + "alloc": {}, + "initMinerNodes":{initMinerNodes} +} \ No newline at end of file diff --git a/sample/init.js b/sample/init.js new file mode 100755 index 0000000000..62c0b8fb98 --- /dev/null +++ b/sample/init.js @@ -0,0 +1,137 @@ +var fs=require('fs'); +var execSync =require('child_process').execSync; + +var options = process.argv; +if( options.length < 3 ) +{ + console.log('Usage: node init.js node0.sample node1.sample node2.sample... '); + process.exit(0); +} + +var nodeconfiglength=0; +var nodeconfig=[]; +while(nodeconfig.length