From 745763d297ceed906c0a47c50b91acf5927add5c Mon Sep 17 00:00:00 2001 From: RickiNano <81099017+RickiNano@users.noreply.github.com> Date: Tue, 30 Jan 2024 19:25:09 +0100 Subject: [PATCH] Minor adjustments --- nano/node/network.cpp | 6 +++--- nano/node/nodeconfig.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nano/node/network.cpp b/nano/node/network.cpp index b962abf5ef..7e52649389 100644 --- a/nano/node/network.cpp +++ b/nano/node/network.cpp @@ -67,6 +67,8 @@ nano::network::~network () void nano::network::start () { + Configure_blocked_peers (); + if (!node.flags.disable_connection_cleanup) { ongoing_cleanup (); @@ -77,8 +79,6 @@ void nano::network::start () tcp_channels.start (); } ongoing_keepalive (); - - Configure_blocked_peers (); } void nano::network::stop () @@ -505,7 +505,7 @@ void nano::network::process_message (nano::message const & message, std::shared_ { if (is_ip_blocked (channel->get_tcp_endpoint ().address ())) { - node.logger.debug (nano::log::type::network, "Message from IP {} blocked.", channel->get_tcp_endpoint ().address ().to_string ()); + node.logger.debug (nano::log::type::network, "Ignoring message from IP {}", channel->get_tcp_endpoint ().address ().to_string ()); return; } diff --git a/nano/node/nodeconfig.cpp b/nano/node/nodeconfig.cpp index bbf6521af3..e207af52d9 100644 --- a/nano/node/nodeconfig.cpp +++ b/nano/node/nodeconfig.cpp @@ -144,7 +144,7 @@ nano::error nano::node_config::serialize_toml (nano::tomlconfig & toml) const preconfigured_peers_l->push_back (*i); } - auto blocked_peers_l (toml.create_array ("blocked_peers", "A list of \"address\" (hostname or ipv4 or ipv6 notation ip address) that you want to ignore all requests from. \nExample: [\"192.168.0.1\",\"::ffff:10.0.0.1]\"")); + auto blocked_peers_l (toml.create_array ("blocked_peers", "A list of \"address\" (ipv4 or ipv6 notation ip address) that you want to ignore all requests from. \nExample: [\"192.168.0.1\",\"::ffff:10.0.0.1]\"")); auto preconfigured_representatives_l (toml.create_array ("preconfigured_representatives", "A list of representative account addresses used when creating new accounts in internal wallets.")); for (auto i (preconfigured_representatives.begin ()), n (preconfigured_representatives.end ()); i != n; ++i)