Skip to content

Commit df1ac84

Browse files
authored
Merge pull request ethereumjs#755 from ethereumjs/berlin-common-boilerplate
Add common boilerplate for Berlin hardfork
2 parents 56d02e7 + e7847df commit df1ac84

File tree

8 files changed

+46
-0
lines changed

8 files changed

+46
-0
lines changed

packages/common/src/chains/goerli.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@
6767
"block": 1561651,
6868
"consensus": "poa",
6969
"finality": null
70+
},
71+
{
72+
"name": "berlin",
73+
"block": null,
74+
"consensus": "poa",
75+
"finality": null
7076
}
7177
],
7278
"bootstrapNodes": [

packages/common/src/chains/kovan.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@
6767
"block": 14111141,
6868
"consensus": "poa",
6969
"finality": null
70+
},
71+
{
72+
"name": "berlin",
73+
"block": null,
74+
"consensus": "poa",
75+
"finality": null
7076
}
7177
],
7278
"bootstrapNodes": [

packages/common/src/chains/mainnet.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@
7373
"block": 9200000,
7474
"consensus": "pow",
7575
"finality": null
76+
},
77+
{
78+
"name": "berlin",
79+
"block": null,
80+
"consensus": "pow",
81+
"finality": null
7682
}
7783
],
7884
"bootstrapNodes": [

packages/common/src/chains/rinkeby.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@
6767
"block": 5435345,
6868
"consensus": "poa",
6969
"finality": null
70+
},
71+
{
72+
"name": "berlin",
73+
"block": null,
74+
"consensus": "poa",
75+
"finality": null
7076
}
7177
],
7278
"bootstrapNodes": [

packages/common/src/chains/ropsten.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@
7373
"block": 7117117,
7474
"consensus": "pow",
7575
"finality": null
76+
},
77+
{
78+
"name": "berlin",
79+
"block": null,
80+
"consensus": "pow",
81+
"finality": null
7682
}
7783
],
7884
"bootstrapNodes": [
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "berlin",
3+
"comment": "HF targeted for July 2020 following the Muir Glacier HF",
4+
"eip": {
5+
"url": "https://eips.ethereum.org/EIPS/eip-2070",
6+
"status": "Draft"
7+
},
8+
"gasConfig": {},
9+
"gasPrices": {},
10+
"vm": {},
11+
"pow": {},
12+
"casper": {},
13+
"sharding": {}
14+
}

packages/common/src/hardforks/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ export const hardforks = [
99
['petersburg', require('./petersburg.json')],
1010
['istanbul', require('./istanbul.json')],
1111
['muirGlacier', require('./muirGlacier.json')],
12+
['berlin', require('./berlin.json')],
1213
]

packages/common/tests/hardforks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ tape('[Common]: Hardfork logic', function(t: tape.Test) {
1313
'constantinople',
1414
'petersburg',
1515
'istanbul',
16+
'berlin',
1617
]
1718
let c
1819

0 commit comments

Comments
 (0)