Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

Commit

Permalink
remove old fields consensus and finality
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Jun 2, 2020
1 parent 3af85bc commit 421f3a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
4 changes: 1 addition & 3 deletions lib/util/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ async function parseGethParams (json) {
}
params.hardforks = hardforks.map(name => ({
name: name,
block: name === 'chainstart' ? 0 : json.config[forkMap[name]] || null,
consensus: json.config.clique ? 'poa' : 'pow',
finality: name === 'hybridCasper' ? 'pos' : null
block: name === 'chainstart' ? 0 : json.config[forkMap[name]] || null
}))
return params
}
Expand Down
16 changes: 0 additions & 16 deletions test/util/params.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,42 +23,26 @@
"hardforks": [{
"name": "chainstart",
"block": 0,
"consensus": "poa",
"finality": null
}, {
"name": "homestead",
"block": 1,
"consensus": "poa",
"finality": null
}, {
"name": "dao",
"block": null,
"consensus": "poa",
"finality": null
}, {
"name": "tangerineWhistle",
"block": 2,
"consensus": "poa",
"finality": null
}, {
"name": "spuriousDragon",
"block": 3,
"consensus": "poa",
"finality": null
}, {
"name": "byzantium",
"block": 1035301,
"consensus": "poa",
"finality": null
}, {
"name": "constantinople",
"block": null,
"consensus": "poa",
"finality": null
}, {
"name": "hybridCasper",
"block": null,
"consensus": "poa",
"finality": "pos"
}]
}

0 comments on commit 421f3a9

Please sign in to comment.