smoldot icon indicating copy to clipboard operation
smoldot copied to clipboard

Full node should load consensus data from chain storage instead of storing it in database

Open tomaka opened this issue 4 years ago • 3 comments

Instead of storing the Aura/Babe/Grandpa authorities in the database, the full node should load them from the chain storage.

Before tackling this issue, one should check whether it is actually possible to load everything from the chain storage.

tomaka avatar Dec 07 '21 14:12 tomaka

First we should refactor the code that builds the chain information.

cc https://github.com/paritytech/smoldot/issues/1681

tomaka avatar Oct 08 '22 13:10 tomaka

I've realized a problem with https://github.com/paritytech/smoldot/pull/2845, which is that there were moments when we didn't provide any runtime function to get the GrandPa current set id.

tomaka avatar Oct 10 '22 10:10 tomaka

This can't be done in we want to support syncing from scratch. We can, however, implement this if we force the full node to warp sync.

tomaka avatar Nov 22 '22 10:11 tomaka