fn update_database, in crates/core/src/host/wasm_common/module_host_actor.rs , does not record the energy cost of the transaction which updates the database to a new module blob. It does record the cost of re-evaluating subscriptions if that's necessary, but not to write the system tables, which includes storing the new code blob.
fn update_database, in crates/core/src/host/wasm_common/module_host_actor.rs , does not record the energy cost of the transaction which updates the database to a new module blob. It does record the cost of re-evaluating subscriptions if that's necessary, but not to write the system tables, which includes storing the new code blob.