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

feat: allow System API method in_replicated_execution to run during canister_start #260

Merged
merged 4 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions spec/_attachments/interface-spec-changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* The IC sends a `user-agent` header with the value `ic/1.0` in canister HTTPS outcalls if the canister does not provide one.
* Add a management canister method for retrieving node metrics.
* Specify the resource reservation mechanism.
* Allow `in_replicated_execution` system API method to be executed during `canister_start`.

### 0.22.0 (2023-11-15) {#0_22_0}
* Add metrics on subnet usage into the certified state tree and a new HTTP endpoint `/api/v2/subnet/<subnet_id>/read_state` for retrieving them.
Expand Down
3 changes: 1 addition & 2 deletions spec/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@ The following sections describe various System API functions, also referred to a
ic0.global_timer_set : (timestamp : i64) -> i64; // I G U Ry Rt C T
ic0.performance_counter : (counter_type : i32) -> (counter : i64); // * s
ic0.is_controller: (src: i32, size: i32) -> ( result: i32); // * s
ic0.in_replicated_execution: () -> (result: i32); // *
ic0.in_replicated_execution: () -> (result: i32); // * s

ic0.debug_print : (src : i32, size : i32) -> (); // * s
ic0.trap : (src : i32, size : i32) -> (); // * s
Expand Down Expand Up @@ -6470,7 +6470,6 @@ The pseudo-code below does *not* explicitly enforce the restrictions of which im
Trap {cycles_used = es.cycles_used;}

ic0.in_replicated_execution<es>() : i32 =
if es.context = s then Trap {cycles_used = es.cycles_used;}
if es.params.sysenv.certificate = NoCertificate
then return 1
else return 0
Expand Down
Loading