Skip to content

Commit

Permalink
Add warning comment
Browse files Browse the repository at this point in the history
  • Loading branch information
adamspofford-dfinity committed Oct 31, 2023
1 parent 98891cb commit 56f57e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ic-agent/src/agent/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1299,6 +1299,8 @@ impl StepFns<Principal> for PrincipalStep {

#[derive(Clone)]
pub(crate) struct Subnet {
// This key is just fetched for completeness. Do not actually use this value as it is not authoritative in case of a rogue subnet.
// If a future agent needs to know the subnet key then it should fetch /subnet from the *root* subnet.
_key: Vec<u8>,
node_keys: HashMap<Principal, Vec<u8>>,
canister_ranges: RangeInclusiveSet<Principal, PrincipalStep>,
Expand Down

0 comments on commit 56f57e6

Please sign in to comment.