From 66ff5c85c89b6b991af6d4e3b6e2c7672032007c Mon Sep 17 00:00:00 2001 From: Ryan Ghods Date: Tue, 2 Jun 2020 16:16:00 -0700 Subject: [PATCH] remove old fields `consensus` and `finality` --- lib/util/parse.js | 4 +--- test/util/params.json | 16 ---------------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/lib/util/parse.js b/lib/util/parse.js index a14c8ad..f28999f 100644 --- a/lib/util/parse.js +++ b/lib/util/parse.js @@ -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 } diff --git a/test/util/params.json b/test/util/params.json index 8247803..b7f0adb 100644 --- a/test/util/params.json +++ b/test/util/params.json @@ -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" }] }