smoldot icon indicating copy to clipboard operation
smoldot copied to clipboard

Add finalized block runtime code and heap_pages to wasm node database

Open tomaka opened this issue 4 years ago • 2 comments

The wasm node database should contain the finalized block runtime code and heap pages. Additionally, we should start by querying the hash of the runtime code from the network, instead of the value, and compare it against the hash stored in the database. This would save the user from downloading the runtime if it hasn't changed since last time.

tomaka avatar Dec 10 '21 07:12 tomaka

Thanks to https://github.com/paritytech/smoldot/pull/1773 we can now be sure that adding the runtime to the database will not make it exceed the maximum allowed size for local storage.

tomaka avatar Dec 10 '21 12:12 tomaka

querying the hash of the runtime code from the network, instead of the value

This is the major remaining item in this issue.

tomaka avatar Dec 15 '21 09:12 tomaka