From 04be72a7a42c80019fc0a6d6a84b2a6915234410 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 | 32 ++++++++------------------------ 2 files changed, 9 insertions(+), 27 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..f4bd640 100644 --- a/test/util/params.json +++ b/test/util/params.json @@ -22,43 +22,27 @@ "bootstrapNodes": [], "hardforks": [{ "name": "chainstart", - "block": 0, - "consensus": "poa", - "finality": null + "block": 0 }, { "name": "homestead", - "block": 1, - "consensus": "poa", - "finality": null + "block": 1 }, { "name": "dao", - "block": null, - "consensus": "poa", - "finality": null + "block": null }, { "name": "tangerineWhistle", - "block": 2, - "consensus": "poa", - "finality": null + "block": 2 }, { "name": "spuriousDragon", - "block": 3, - "consensus": "poa", - "finality": null + "block": 3 }, { "name": "byzantium", - "block": 1035301, - "consensus": "poa", - "finality": null + "block": 1035301 }, { "name": "constantinople", - "block": null, - "consensus": "poa", - "finality": null + "block": null }, { "name": "hybridCasper", - "block": null, - "consensus": "poa", - "finality": "pos" + "block": null }] }