mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
dnetview: ignore node data if dnetview is not enabled
This commit is contained in:
@@ -298,7 +298,7 @@ impl DataParser {
|
||||
}
|
||||
|
||||
async fn update_selectables(&self, node: NodeInfo) -> DnetViewResult<()> {
|
||||
if node.is_offline {
|
||||
if node.is_offline && !node.dnet_enabled {
|
||||
let node_obj = SelectableObject::Node(node.clone());
|
||||
self.model.selectables.lock().await.insert(node.dnet_id.clone(), node_obj.clone());
|
||||
} else {
|
||||
|
||||
@@ -95,7 +95,7 @@ impl<'a> View {
|
||||
if !self.ordered_list.iter().any(|i| i == &node.dnet_id) {
|
||||
self.ordered_list.push(node.dnet_id.clone());
|
||||
}
|
||||
if !node.is_offline {
|
||||
if !node.is_offline && node.dnet_enabled {
|
||||
for inbound in &node.inbound {
|
||||
if !inbound.is_empty {
|
||||
if !self.ordered_list.iter().any(|i| i == &inbound.dnet_id) {
|
||||
|
||||
Reference in New Issue
Block a user