MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / new_root

Method new_root

ipc/api/src/subnet_id.rs:76–81  ·  view source on GitHub ↗

Creates a new rootnet SubnetID

(root_id: u64)

Source from the content-addressed store, hash-verified

74
75 /// Creates a new rootnet SubnetID
76 pub fn new_root(root_id: u64) -> Self {
77 Self {
78 root: root_id,
79 children: vec![],
80 }
81 }
82
83 /// Returns true if the current subnet is the root network
84 pub fn is_root(&self) -> bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected