Skip to content

Make CostPerByte for new bytecode storage configurable #694

@benluelo

Description

@benluelo

this is hardcoded:

const CostPerByte uint64 = 3 * 140_000

and as far as i can tell, this is never read (happy to be proven wrong though): https://github.com/CosmWasm/wasmd/blob/1d428c43e7ac1086d9fe97c59131dd07eb19ecf2/x/wasm/types/gas_register.go#L110

this should be a configurable parameter for chains that want to prevent against spam code uploads.

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