Skip to content

Avoid converting to int in calculate_block_difficulty #1415

@SamWilsn

Description

@SamWilsn

In pre-merge forks, the calculate_block_difficulty function converts to int before doing the calculations.

Ideally, we should try and use types from ethereum-types whenever possible to indicate the intended signedness and bitwidth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-spec-specsArea: EVM specificationC-enhanceCategory: a request for an improvementE-easyExperience: easy, good for newcomersP-low

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions