Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 9465a59

Browse files
committed
inspect_message is not invoked on frozen canisters
1 parent 4b67f20 commit 9465a59

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spec/index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2930,8 +2930,20 @@ is_effective_canister_id(E.content, ECID)
29302930
status = simple_status(S.canister_status[E.content.canister_id]);
29312931
canister_version = S.canister_version[E.content.canister_id];
29322932
}
2933+
S.balances[E.content.canister_id] ≥ freezing_limit(
2934+
S.compute_allocation[E.content.canister_id],
2935+
S.memory_allocation[E.content.canister_id],
2936+
S.freezing_threshold[E.content.canister_id],
2937+
memory_usage(
2938+
S.canisters[E.content.canister_id].wasm_state,
2939+
S.canisters[E.content.canister_id].raw_module,
2940+
S.canister_history[E.content.canister_id]
2941+
),
2942+
S.canister_subnet[E.content.canister_id].subnet_size,
2943+
)
29332944
S.canisters[E.content.canister_id].module.inspect_message
29342945
(E.content.method_name, S.canisters[E.content.canister_id].wasm_state, E.content.arg, E.content.sender, Env) = Return {status = Accept;}
2946+
)
29352947

29362948
```
29372949

0 commit comments

Comments
 (0)