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.