Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Commit 53c7c37

Browse files
authored
Merge branch 'master' into rinkeby-fork-blocks
2 parents 2423451 + 51d77b9 commit 53c7c37

File tree

8 files changed

+70
-10
lines changed

8 files changed

+70
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ library supported:
7575
- `byzantium`
7676
- `constantinople`
7777
- `petersburg` (aka `constantinopleFix`, apply together with `constantinople`)
78+
- `istanbul`
7879

7980
## Future Hardforks
8081

src/chains/goerli.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"name": "istanbul",
67-
"block": null,
67+
"block": 1561651,
6868
"consensus": "poa",
6969
"finality": null
7070
}

src/chains/kovan.json

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,62 @@
1313
"extraData": "0x",
1414
"stateRoot": "0x2480155b48a1cea17d67dbfdfaafe821c1d19cdd478c5358e8ec56dec24502b2"
1515
},
16-
"hardforks": [],
16+
"hardforks": [
17+
{
18+
"name": "chainstart",
19+
"block": 0,
20+
"consensus": "poa",
21+
"finality": null
22+
},
23+
{
24+
"name": "homestead",
25+
"block": 0,
26+
"consensus": "poa",
27+
"finality": null
28+
},
29+
{
30+
"name": "dao",
31+
"block": 0,
32+
"consensus": "poa",
33+
"finality": null
34+
},
35+
{
36+
"name": "tangerineWhistle",
37+
"block": 0,
38+
"consensus": "poa",
39+
"finality": null
40+
},
41+
{
42+
"name": "spuriousDragon",
43+
"block": 0,
44+
"consensus": "poa",
45+
"finality": null
46+
},
47+
{
48+
"name": "byzantium",
49+
"block": 5067000,
50+
"consensus": "poa",
51+
"finality": null
52+
},
53+
{
54+
"name": "constantinople",
55+
"block": 9200000,
56+
"consensus": "poa",
57+
"finality": null
58+
},
59+
{
60+
"name": "petersburg",
61+
"block": 10255201,
62+
"consensus": "poa",
63+
"finality": null
64+
},
65+
{
66+
"name": "istanbul",
67+
"block": 14111141,
68+
"consensus": "poa",
69+
"finality": null
70+
}
71+
],
1772
"bootstrapNodes": [
1873
{
1974
"ip": "40.71.221.215",

src/chains/mainnet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"name": "istanbul",
67-
"block": null,
67+
"block": 9069000,
6868
"consensus": "pow",
6969
"finality": null
7070
}

src/chains/rinkeby.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"name": "istanbul",
67-
"block": null,
67+
"block": 5435345,
6868
"consensus": "poa",
6969
"finality": null
7070
}

src/chains/ropsten.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"name": "istanbul",
67-
"block": null,
67+
"block": 6485846,
6868
"consensus": "pow",
6969
"finality": null
7070
}

src/hardforks/istanbul.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "istanbul",
3-
"comment": "HF targeted for October 2019 following the Constantinople/Petersburg HF",
3+
"comment": "HF targeted for December 2019 following the Constantinople/Petersburg HF",
44
"eip": {
55
"url": "https://eips.ethereum.org/EIPS/eip-1679",
66
"status": "Draft"

tests/hardforks.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ tape('[Common]: Hardfork logic', function(t: tape.Test) {
3333
msg = 'should return the correct HF change block for byzantium (set)'
3434
st.equal(c.hardforkBlock(), 1700000, msg)
3535

36+
c = new Common('ropsten', 'istanbul')
37+
msg = 'should return the correct HF change block for istanbul (set)'
38+
st.equal(c.hardforkBlock(), 6485846, msg)
39+
3640
st.end()
3741
})
3842

@@ -56,8 +60,8 @@ tape('[Common]: Hardfork logic', function(t: tape.Test) {
5660

5761
t.test('activeHardforks()', function(st: tape.Test) {
5862
let c = new Common('ropsten')
59-
let msg = 'should return 7 active hardforks for Ropsten'
60-
st.equal(c.activeHardforks().length, 7, msg)
63+
let msg = 'should return 8 active hardforks for Ropsten'
64+
st.equal(c.activeHardforks().length, 8, msg)
6165

6266
msg = 'should return the correct HF data for Ropsten'
6367
st.equal(c.activeHardforks()[3]['name'], 'spuriousDragon', msg)
@@ -81,8 +85,8 @@ tape('[Common]: Hardfork logic', function(t: tape.Test) {
8185

8286
t.test('activeHardfork()', function(st: tape.Test) {
8387
let c = new Common('ropsten')
84-
let msg = 'should return petersburg as latest active HF for Ropsten'
85-
st.equal(c.activeHardfork(), 'petersburg', msg)
88+
let msg = 'should return istanbul as latest active HF for Ropsten'
89+
st.equal(c.activeHardfork(), 'istanbul', msg)
8690

8791
msg = 'should return spuriousDragon as latest active HF for Ropsten for block 10'
8892
st.equal(c.activeHardfork(10), 'spuriousDragon', msg)

0 commit comments

Comments
 (0)