Skip to content

Commit

Permalink
Merge branch 'maksym/exc-1494-repl-api-2' into 'master'
Browse files Browse the repository at this point in the history
feat: [EXC-1494] allow Start api type for ic0.in_replicated_execution

 

See merge request dfinity-lab/public/ic!16630
  • Loading branch information
maksymar committed Dec 11, 2023
2 parents d726cac + 3c5bebd commit 03338f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rs/system_api/src/lib.rs
Expand Up @@ -2901,8 +2901,8 @@ impl SystemApi for SystemApiImpl {

fn ic0_in_replicated_execution(&self) -> HypervisorResult<i32> {
let result = match &self.api_type {
ApiType::Start { .. } => Err(self.error_for("ic0_in_replicated_execution")),
ApiType::Init { .. }
ApiType::Start { .. }
| ApiType::Init { .. }
| ApiType::ReplyCallback { .. }
| ApiType::RejectCallback { .. }
| ApiType::Cleanup { .. }
Expand Down
2 changes: 1 addition & 1 deletion rs/system_api/tests/system_api.rs
Expand Up @@ -772,7 +772,7 @@ fn test_start_support() {
assert_api_not_supported(api.ic0_canister_status());
assert_api_not_supported(api.ic0_mint_cycles(0));
assert_api_supported(api.ic0_is_controller(0, 0, &[]));
assert_api_not_supported(api.ic0_in_replicated_execution());
assert_api_supported(api.ic0_in_replicated_execution());
assert_api_not_supported(api.ic0_cycles_burn128(Cycles::zero(), 0, &mut []));
check_stable_apis_support(api);
}
Expand Down

0 comments on commit 03338f5

Please sign in to comment.