Skip to content

Review fake_exponential function bounds #5096

@fedacking

Description

@fedacking

The fake_exponential function needs to be reviews, as there are currently 3 different implementations (fake_exponential in block.rs, fake_exponential_checked in block.rs and fake_exponential in levms utils.rs) and they can all overflow based on different possible inputs. We should introduce an explicit bound based on the usage of the function (calculating blob fee) and add a test for that scenario.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions