smoldot icon indicating copy to clipboard operation
smoldot copied to clipboard

Simplify the database content by restoring chain information from the database

Open tomaka opened this issue 3 years ago • 3 comments

Close https://github.com/paritytech/smoldot/issues/1752

This PR removes a lot of fields from the database, as the values of these fields is now computed from the runtime of the finalized block when the client initialized.

While this PR is fully ready, I'm opening it as a draft. Unfortunately, the runtime functions used by the chain information builder weren't always available, and so the loading might fail. This needs to be first figured out.

tomaka avatar Oct 20 '22 13:10 tomaka

twiggy diff report

Difference in .wasm size before and after this pull request.


 Delta Bytes │ Item
─────────────┼──────────────────
          +0 ┊ Σ [0 Total Rows]

github-actions[bot] avatar Oct 20 '22 13:10 github-actions[bot]

Blocked on https://github.com/paritytech/smoldot/issues/2930

tomaka avatar Oct 25 '22 14:10 tomaka

Since https://github.com/paritytech/smoldot/issues/2930 is not doable, this is instead blocked on https://github.com/paritytech/smoldot/issues/165.

tomaka avatar Oct 28 '22 07:10 tomaka