Skip to content

Support ProtocolConfig (v0.17) #2546

Description

@Mirko-von-Leipzig

In v0.17, fee asset ID is factored out into ProtocolConfig, who's commitment is instead part of the block header.

Clients now need a way to get this configuration, at the very least to access the fee asset ID that they could previously get from the header.

Support therefore includes:

  1. Storing this config
  2. Verifying the commitment
  3. Exposing this config via RPC

We are expecting this config to change very rarely - on the order of months. (1) therefore makes sense to keep this in a separate table which can be looked up via commitment.

For (3) we need a new endpoint. The values can be heavily cached since they change so rarely, and are therefore valid for large block ranges. I imagine query by commitment makes the most sense.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

blockedSomething prevents working on thisrpcRelated to the RPC componentstoreRelated to the store component

Type

No type

Fields

Priority

Medium

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions