From 19b908595e00b4492598f9115763a67cd9e26405 Mon Sep 17 00:00:00 2001 From: Maria Kuklina Date: Thu, 12 Sep 2024 18:14:41 +0200 Subject: [PATCH] return allowed_binaries --- nox/src/node.rs | 7 +++++-- particle-builtins/src/identify.rs | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/nox/src/node.rs b/nox/src/node.rs index bf6ff6c4e3..1070389376 100644 --- a/nox/src/node.rs +++ b/nox/src/node.rs @@ -33,6 +33,7 @@ use libp2p::{ use libp2p_connection_limits::ConnectionLimits; use libp2p_metrics::{Metrics, Recorder}; use prometheus_client::registry::Registry; +use std::path::PathBuf; use std::process::exit; use std::sync::Arc; use std::{io, net::SocketAddr}; @@ -394,8 +395,10 @@ impl Node { let allowed_binaries = config .allowed_effectors - .keys() - .map(|key| key.to_string()) + .values() + .flat_map(|v| v.values().cloned().collect::>()) + .collect::>() + .into_iter() .collect::<_>(); let node_info = NodeInfo { external_addresses: config.external_addresses(), diff --git a/particle-builtins/src/identify.rs b/particle-builtins/src/identify.rs index e4e05fcb9b..f15e1bbb9b 100644 --- a/particle-builtins/src/identify.rs +++ b/particle-builtins/src/identify.rs @@ -18,6 +18,7 @@ */ use libp2p::core::Multiaddr; use serde::Serialize; +use std::path::PathBuf; #[derive(Serialize, Clone, Debug)] pub struct NodeInfo { @@ -25,7 +26,7 @@ pub struct NodeInfo { pub node_version: &'static str, pub air_version: &'static str, pub spell_version: String, - pub allowed_binaries: Vec, + pub allowed_binaries: Vec, // Note: this is Vec for Aqua's representation of an option #[serde(serialize_with = "serialize_aqua_option")] pub vm_info: Option,