Skip to content

Fetch constants from runtime metadata? #493

@ascjones

Description

@ascjones

Constants are currently quite literally constant, since they are embedded in the code generated from the metadata provided at compile time.

However, I believe it is more useful to read the constants from the metadata fetched at runtime from the node. This is for the case where the constant values differ in the runtime targeted node, which is legitimate when building an app which can target different compatible chains.

I came across this when debugging povstats which reads the maximum block weight, and I was adjusting the block weight on the node side which wasn't being reflected on the client side.

Rel #402

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