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

remove old fields consensus and finality #120

Merged
merged 1 commit into from
Jun 3, 2020
Merged

Conversation

ryanio
Copy link
Contributor

@ryanio ryanio commented Jun 2, 2020

This PR follows ethereumjs/ethereumjs-monorepo#758 to remove unused fields consensus and finality.

@coveralls
Copy link

coveralls commented Jun 2, 2020

Coverage Status

Coverage increased (+0.2%) to 92.711% when pulling 04be72a on remove-old-fields into 3af85bc on master.

Copy link
Member

@holgerd77 holgerd77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, good catch, didn't know this was consumed here

@@ -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',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was a bit unsure about the consensus part, since the PoA information is directly extracted from a geth configuration file, but the information is nowhere used within the client so I think it should be safe to remove. Can also be re-added later if necessary, eventually in another context then.

@holgerd77 holgerd77 merged commit f15259a into master Jun 3, 2020
@holgerd77 holgerd77 deleted the remove-old-fields branch June 3, 2020 11:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants