Skip to content

Signatures should consume gas inside Verify func of ISM #119

@cmwaters

Description

@cmwaters

Currently the gas consumed by a Verify call is fixed:

sdk.UnwrapSDKContext(ctx).GasMeter().ConsumeGas(10000, "ism verification")

The ISM itself should be responsible for consuming gas. Since both message and merkle root ISMs use signatures, there's already a parameter available for consuming gas per signature

https://github.com/celestiaorg/cosmos-sdk/blob/d44ddbb106ad0cd510c170e7d23ee8a48d003ba5/x/auth/types/auth.pb.go#L176

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