portal icon indicating copy to clipboard operation
portal copied to clipboard

feat: preconditions for installing code

Open mraszyk opened this issue 7 months ago • 5 comments

This PR specifies preconditions for installing canister code via the corresponding management canister endpoints that must be satisfied (if provided) for the call to succeed. The motivation is to prevent canisters that are not stopped from being installed and to enable compare-and-swap semantics for installing canisters (by atomically "comparing" the canister history before "swapping" the canister code).

mraszyk avatar May 09 '25 09:05 mraszyk

🤖 Here's your preview: https://zeh4i-iqaaa-aaaam-aeivq-cai.icp0.io

github-actions[bot] avatar May 09 '25 09:05 github-actions[bot]

Should we do the same for load_canister_snapshot_args?

oggy-dfin avatar Jul 28 '25 14:07 oggy-dfin

Should we do the same for load_canister_snapshot_args?

Makes sense to me.

mraszyk avatar Aug 04 '25 06:08 mraszyk

@mraszyk can we merge this?

marc0olo avatar Aug 13 '25 11:08 marc0olo

@mraszyk can we merge this?

Not really because it is not implemented in the protocol (this PR is merely a suggestion for a new protocol feature).

mraszyk avatar Aug 13 '25 11:08 mraszyk