diff --git a/dashboard/packages/app/src/components/subnets/NodeSearch.tsx b/dashboard/packages/app/src/components/subnets/NodeSearch.tsx index 95e0fe0f4..1420f5199 100644 --- a/dashboard/packages/app/src/components/subnets/NodeSearch.tsx +++ b/dashboard/packages/app/src/components/subnets/NodeSearch.tsx @@ -143,12 +143,6 @@ export default function NodeSearch({ onSearchChange, expand }: { onSearchChange: hidden: false, searchable: true, }, - { - title: 'Decentralized', - field: 'decentralized', - type: 'boolean', - hidden: false, - }, ]; diff --git a/rs/decentralization/src/nakamoto/mod.rs b/rs/decentralization/src/nakamoto/mod.rs index 279938022..e65be1a84 100644 --- a/rs/decentralization/src/nakamoto/mod.rs +++ b/rs/decentralization/src/nakamoto/mod.rs @@ -869,7 +869,6 @@ mod tests { .sorted_by(|a, b| a.principal.cmp(&b.principal)) .filter(|n| n.subnet_id.is_none() && n.proposal.is_none()) .map(Node::from) - .map(|n| Node { decentralized: true, ..n }) .collect::>(); subnet_healthy.check_business_rules().expect("Check business rules failed"); diff --git a/rs/decentralization/src/network.rs b/rs/decentralization/src/network.rs index 45ac680e1..62fffff97 100644 --- a/rs/decentralization/src/network.rs +++ b/rs/decentralization/src/network.rs @@ -28,7 +28,6 @@ pub struct Node { pub id: PrincipalId, pub features: nakamoto::NodeFeatures, pub dfinity_owned: bool, - pub decentralized: bool, } impl std::fmt::Display for Node { @@ -42,12 +41,11 @@ impl std::fmt::Display for Node { } impl Node { - pub fn new_test_node(node_number: u64, features: nakamoto::NodeFeatures, dfinity_owned: bool, decentralized: bool) -> Self { + pub fn new_test_node(node_number: u64, features: nakamoto::NodeFeatures, dfinity_owned: bool) -> Self { Node { id: PrincipalId::new_node_test_id(node_number), features, dfinity_owned, - decentralized, } } diff --git a/rs/ic-management-backend/src/lazy_registry.rs b/rs/ic-management-backend/src/lazy_registry.rs index fcaebbdff..edb9ac73b 100644 --- a/rs/ic-management-backend/src/lazy_registry.rs +++ b/rs/ic-management-backend/src/lazy_registry.rs @@ -371,7 +371,6 @@ impl LazyRegistry { operator: operator.clone().unwrap_or_default(), proposal: None, label: guest.map(|g| g.name), - decentralized: ip_addr.segments()[4] == 0x6801, duplicates: versioned_node_entries .iter() .filter(|(_, (_, nr2))| Self::node_ip_addr(nr2) == Self::node_ip_addr(nr)) diff --git a/rs/ic-management-backend/src/node_labels.rs b/rs/ic-management-backend/src/node_labels.rs index 952a16023..443255e19 100644 --- a/rs/ic-management-backend/src/node_labels.rs +++ b/rs/ic-management-backend/src/node_labels.rs @@ -44,7 +44,6 @@ pub async fn query_guests(network: &String) -> anyhow::Result> { ipv6: ip.parse().unwrap(), name: format!("{}-{}", dc, label), dfinity_owned: DFINITY_DCS.contains(dc), - decentralized: true, } }) .collect()) diff --git a/rs/ic-management-backend/src/registry.rs b/rs/ic-management-backend/src/registry.rs index 9fac446e7..ec71567ab 100644 --- a/rs/ic-management-backend/src/registry.rs +++ b/rs/ic-management-backend/src/registry.rs @@ -490,7 +490,6 @@ impl RegistryState { operator, proposal: None, label: guest.map(|g| g.name), - decentralized: ip_addr.segments()[4] == 0x6801, duplicates: node_entries .iter() .filter(|(_, (_, nr2))| node_ip_addr(nr2) == node_ip_addr(nr)) diff --git a/rs/ic-management-backend/src/subnets.rs b/rs/ic-management-backend/src/subnets.rs index eb1371ee5..c6d6d2246 100644 --- a/rs/ic-management-backend/src/subnets.rs +++ b/rs/ic-management-backend/src/subnets.rs @@ -152,7 +152,6 @@ mod tests { }, subnet_id: Some(subnet_id), hostos_release: None, - decentralized: true, ip_addr: Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1), hostname: None, dfinity_owned: None, diff --git a/rs/ic-management-types/src/lib.rs b/rs/ic-management-types/src/lib.rs index 0427ad8dc..5eedb36c6 100644 --- a/rs/ic-management-types/src/lib.rs +++ b/rs/ic-management-types/src/lib.rs @@ -269,7 +269,6 @@ pub struct Node { pub proposal: Option, pub label: Option, #[serde(default)] - pub decentralized: bool, pub duplicates: Option, pub is_api_boundary_node: bool, } @@ -386,7 +385,6 @@ pub struct Guest { pub ipv6: Ipv6Addr, pub name: String, pub dfinity_owned: bool, - pub decentralized: bool, } #[derive(Clone, Serialize, Deserialize, PartialEq, Hash, Eq)] @@ -406,7 +404,6 @@ impl From for Guest { ipv6: g.ipv6, name: g.physical_system.split('.').next().expect("invalid physical system name").to_string(), dfinity_owned: g.node_type.contains("dfinity"), - decentralized: g.ipv6.segments()[4] == 0x6801, } } }