Skip to content

Commit bfb0bf8

Browse files
Update sample json files
1 parent 05a61ec commit bfb0bf8

File tree

3 files changed

+33
-25
lines changed

3 files changed

+33
-25
lines changed

README.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
Converts Geth proof of work chain spec e.g.
22
```
33
{
4-
"nonce": "0x0000000000000042",
5-
"timestamp": "0x0",
6-
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
7-
"extraData": "0x0",
8-
"gasLimit": "0x8000000",
9-
"difficulty": "0x400",
10-
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
11-
"coinbase": "0x3333333333333333333333333333333333333333",
12-
"alloc": {
13-
"0000000000000000000000000000000000000001": {"balance": "1"},
14-
"0000000000000000000000000000000000000002": {"balance": "1"},
15-
"0000000000000000000000000000000000000003": {"balance": "1"},
16-
"0000000000000000000000000000000000000004": {"balance": "1"},
17-
"dbdbdb2cbd23b783741e8d7fcf51e459b497e4a6": {"balance": "1606938044258990275541962092341162602522202993782792835301376"},
18-
"e4157b34ea9615cfbde6b4fda419828124b70c78": {"balance": "1606938044258990275541962092341162602522202993782792835301376"}
19-
}
4+
"nonce": "0x0000000000000000",
5+
"timestamp": "0x0",
6+
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
7+
"extraData": "",
8+
"gasLimit": "0x8000000",
9+
"difficulty": "0x400",
10+
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
11+
"coinbase": "0x0000000000000000000000000000000000000000",
12+
"alloc": {
13+
"0000000000000000000000000000000000000001": {"balance": "1"},
14+
"0000000000000000000000000000000000000002": {"balance": "1"},
15+
"0000000000000000000000000000000000000003": {"balance": "1"},
16+
"0000000000000000000000000000000000000004": {"balance": "1"},
17+
"dbdbdb2cbd23b783741e8d7fcf51e459b497e4a6": {"balance": "1606938044258990275541962092341162602522202993782792835301376"},
18+
"e4157b34ea9615cfbde6b4fda419828124b70c78": {"balance": "1606938044258990275541962092341162602522202993782792835301376"}
19+
}
2020
}
2121
```
2222
to Parity one, which should enable the two to connect to each other.

example-geth.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"nonce": "0x0000000000000042",
2+
"nonce": "0x0000000000000000",
33
"timestamp": "0x0",
44
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
5-
"extraData": "0x0",
5+
"extraData": "",
66
"gasLimit": "0x8000000",
77
"difficulty": "0x400",
88
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
9-
"coinbase": "0x3333333333333333333333333333333333333333",
9+
"coinbase": "0x0000000000000000000000000000000000000000",
1010
"alloc": {
1111
"0000000000000000000000000000000000000001": {"balance": "1"},
1212
"0000000000000000000000000000000000000002": {"balance": "1"},

example-parity.json

+14-6
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,40 @@
33
"engine": {
44
"Ethash": {
55
"params": {
6-
"gasLimitBoundDivisor": "0x400",
76
"minimumDifficulty": "0x20000",
87
"difficultyBoundDivisor": "0x800",
98
"durationLimit": "0xd",
10-
"blockReward": "0x4563918244F40000"
9+
"blockReward": "0x4563918244F40000",
10+
"registrar": "0x81a4b044831c4f12ba601adb9274516939e9b8a2",
11+
"homesteadTransition": 9223372036854775807,
12+
"eip150Transition": 0,
13+
"eip155Transition": 9223372036854775807,
14+
"eip160Transition": 9223372036854775807,
15+
"eip161abcTransition": 9223372036854775807,
16+
"eip161dTransition": 9223372036854775807
1117
}
1218
}
1319
},
1420
"params": {
1521
"accountStartNonce": "0x0",
1622
"maximumExtraDataSize": "0x20",
1723
"minGasLimit": "0x1388",
18-
"networkID": "0x0"
24+
"networkID": 0,
25+
"eip98Transition": 9223372036854775807,
26+
"gasLimitBoundDivisor": "0x400"
1927
},
2028
"genesis": {
2129
"seal": {
2230
"ethereum": {
23-
"nonce": "0x0000000000000042",
31+
"nonce": "0x0000000000000000",
2432
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
2533
}
2634
},
2735
"difficulty": "0x400",
28-
"author": "0x3333333333333333333333333333333333333333",
36+
"author": "0x0000000000000000000000000000000000000000",
2937
"timestamp": "0x0",
3038
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
31-
"extraData": "0x0",
39+
"extraData": "",
3240
"gasLimit": "0x8000000"
3341
},
3442
"accounts": {

0 commit comments

Comments
 (0)