smoldot
smoldot copied to clipboard
Simplify the database content by restoring chain information from the database
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.
twiggy diff report
Difference in .wasm size before and after this pull request.
Delta Bytes │ Item
─────────────┼──────────────────
+0 ┊ Σ [0 Total Rows]
Blocked on https://github.com/paritytech/smoldot/issues/2930
Since https://github.com/paritytech/smoldot/issues/2930 is not doable, this is instead blocked on https://github.com/paritytech/smoldot/issues/165.