Skip to content

Commit

Permalink
add sample-node
Browse files Browse the repository at this point in the history
  • Loading branch information
toxotguo committed Aug 4, 2017
1 parent 593e6e3 commit d94e9ad
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 0 deletions.
34 changes: 34 additions & 0 deletions sample-node/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"sealEngine": "PBFT",
"systemproxyaddress":"0x0",
"listenip":"127.0.0.1",
"rpcport": "8545",
"p2pport": "30303",
"wallet":"./keys.info",
"keystoredir":"./keystore/",
"datadir":"./data/",
"vm":"interpreter",
"networkid":"12345",
"logverbosity":"4",
"coverlog":"ON",
"eventlog":"ON",
"logconf":"./log.conf",
"params": {
"accountStartNonce": "0x0",
"maximumExtraDataSize": "0x0",
"tieBreakingGas": false,
"blockReward": "0x0",
"networkID" : "0x0"
},
"NodeextraInfo":[
{
"Nodeid":"2a0cb7425bd63835d346ae20ec6107d28f64009a9dcca7d485713f1dfe7c4edf6e79b7e08a70cb8220beb133327361313e6bc793433311ba997a81e14800a85f",
"Nodedesc": "node1",
"Agencyinfo": "node1",
"Peerip": "127.0.0.1",
"Identitytype": 1,
"Port":30303,
"Idx":0
}
]
}
1 change: 1 addition & 0 deletions sample-node/data/keys.info
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
��ߒ�:OE�~υ5-�1�,"������5Ȯ�9�O��
1 change: 1 addition & 0 deletions sample-node/data/keys.info.salt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\��aGݘa�� w,��֯`L"��ɗ��G8
28 changes: 28 additions & 0 deletions sample-node/data/log.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
* GLOBAL:
ENABLED = true
TO_FILE = true
TO_STANDARD_OUTPUT = false
FORMAT = "%level|%datetime{%Y-%M-%d %H:%m:%s}|%msg"
FILENAME = "./log/log_%datetime{%Y%M%d%H}.log"
MILLISECONDS_WIDTH = 3
PERFORMANCE_TRACKING = false
MAX_LOG_FILE_SIZE = 209715200 ## 200MB - Comment starts with two hashes (##)
LOG_FLUSH_THRESHOLD = 100 ## Flush after every 100 logs

* TRACE:
FILENAME = "./log/trace_log_%datetime{%Y%M%d%H}.log"
* DEBUG:
FILENAME = "./log/debug_log_%datetime{%Y%M%d%H}.log"
* FATAL:
ENABLED = false

* ERROR:
FILENAME = "./log/error_log_%datetime{%Y%M%d%H}.log"

* WARNING:
ENABLED = false

* INFO:
FILENAME = "./log/info_log_%datetime{%Y%M%d%H}.log"
* VERBOSE:
ENABLED = false
1 change: 1 addition & 0 deletions sample-node/data/network.rlp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
���}�eb�T1��MK�z|��<�� �𦊐��ep�
1 change: 1 addition & 0 deletions sample-node/data/network.rlp.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2a0cb7425bd63835d346ae20ec6107d28f64009a9dcca7d485713f1dfe7c4edf6e79b7e08a70cb8220beb133327361313e6bc793433311ba997a81e14800a85f
Binary file added sample-node/eth
Binary file not shown.
12 changes: 12 additions & 0 deletions sample-node/genesis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"nonce": "0x0",
"difficulty": "0x0",
"mixhash": "0x0",
"coinbase": "0x0",
"timestamp": "0x0",
"parentHash": "0x0",
"extraData": "0x0",
"gasLimit": "0x13880000000000",
"god":"0x4d23de3297034cdd4a58db35f659a9b61fc7577b",
"alloc": {}, "initMinerNodes":["2a0cb7425bd63835d346ae20ec6107d28f64009a9dcca7d485713f1dfe7c4edf6e79b7e08a70cb8220beb133327361313e6bc793433311ba997a81e14800a85f"]
}
3 changes: 3 additions & 0 deletions sample-node/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
./eth --genesis ./genesis.json --config ./config.json

0 comments on commit d94e9ad

Please sign in to comment.