Skip to content

Conversation

@oggy-dfin
Copy link
Contributor

Thank you for your contribution to the IC Developer Portal. This repo contains the content for https://internetcomputer.org and the ICP Developer Documentation, https://internetcomputer.org/docs/.

If you are submitting a pull request for adding or changing content on the ICP Developer Documentation, please make sure that your contribution meets the following requirements:

@github-actions github-actions bot added the interface-spec Changes to the IC Interface Specification label Jun 27, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jun 27, 2025

🤖 Here's your preview: https://hada6-4yaaa-aaaam-abaha-cai.icp0.io

@oggy-dfin oggy-dfin force-pushed the oggy/flexible-http-outcalls branch from 748a6ef to b40ad06 Compare September 22, 2025 12:13
ic0.subnet_self_size : () -> I; // *
ic0.subnet_self_copy : (dst : I, offset : I, size : I) -> (); // *
ic0.subnet_self_node_count : () -> i32; // *
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bike-shedding question: Is it okay to use the terms "replica" and "node" interchangeably? I thought that we primarily use "replica" (but this PR favors the term "node").
Should we aim for consistency?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also use the name "subnet_self_replication_factor". It is longer, but maybe better understandable that it links to cycles cost scaling (see https://internetcomputer.org/docs/building-apps/essentials/gas-cost#subnet-replication-factors).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I had replica originally, but even though (AFAICT) we don't have a precedent in the System API, I realized we used "node" in the state tree (e.g., /subnet/<subnet_id>/node/<node_id>/public_key) and in the management canister (e.g., node_metrics), so I went with "node" here

@oggy-dfin oggy-dfin force-pushed the oggy/flexible-http-outcalls branch from e14bba0 to 14a0954 Compare November 12, 2025 15:04
@oggy-dfin oggy-dfin changed the title First draft of flexible http outcalls feat: First draft of flexible http outcalls Nov 12, 2025
message: text;
};

type flexible_http_request_result = record {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe I missed something. Shouldn't this be a variant? Or have we agreed to return the partial results (albeit shorter than min_responses) even though there were some errors?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be a variant, sorry!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

interface-spec Changes to the IC Interface Specification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants