Skip to content

common: hardforks() method has dead code #4159

@ScottyPoi

Description

@ScottyPoi

The hardforks() method in the Common class contains a conditional check that doesn't actually do anything. The method checks if customHardforks is defined but doesn't use the result to modify the return value.

hardforks(): HardforkTransitionConfig[] {
const hfs = this._chainParams.hardforks
if (this._chainParams.customHardforks !== undefined) {
this._chainParams.customHardforks
}
return hfs
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions