Add finalized block runtime code and heap_pages to wasm node database
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.
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.
querying the hash of the runtime code from the network, instead of the value
This is the major remaining item in this issue.