feat(net/manager): apply trust-nodes-only for incoming nodes (#7177)

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
Delweng
2024-03-18 18:51:14 +08:00
committed by GitHub
parent 7c03881cf8
commit 7b3e418950
6 changed files with 127 additions and 24 deletions

View File

@@ -159,7 +159,7 @@ impl<DB, State> NodeBuilder<DB, State> {
info!(target: "reth::cli", path = ?config_path, "Configuration loaded");
// Update the config with the command line arguments
config.peers.connect_trusted_nodes_only = self.config.network.trusted_only;
config.peers.trusted_nodes_only = self.config.network.trusted_only;
if !self.config.network.trusted_peers.is_empty() {
info!(target: "reth::cli", "Adding trusted nodes");