Skip to content

Chain information: load the storage value of the GrandPa set ID when the API is too old #826

@tomaka

Description

@tomaka

If the GrandPa API is too old, we currently generate an error:

result: Err(Error::GrandpaApiTooOld),

However, paritytech/substrate#3472 introduced a current_set_id storage item. This PR is old enough that it is present in the genesis block of every chain in existence. Rather than return an error, we could load this storage item.

This would make it possible to warp sync to early Kusama blocks, which isn't very useful, but also to simplify the full node database implementation by reviving paritytech/smoldot#2909.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions