From 295f4671b3971790e1e1f94cad4fc9e92bed2202 Mon Sep 17 00:00:00 2001 From: Dimitrios Siganos Date: Tue, 14 Feb 2023 12:41:26 +0000 Subject: [PATCH] Fix missing peering port doc when running --generate_config node (#4123) When running: ./nano_node --generate_config node the peering_port doc was not printed because peering port is an optional and it is only printed when the optional is set. fixes #4122 --- nano/node/cli.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nano/node/cli.cpp b/nano/node/cli.cpp index 4230c7e7a..3f89da982 100644 --- a/nano/node/cli.cpp +++ b/nano/node/cli.cpp @@ -681,6 +681,8 @@ std::error_code nano::handle_node_options (boost::program_options::variables_map valid_type = true; nano::network_params network_params{ nano::network_constants::active_network }; nano::daemon_config config{ data_path, network_params }; + // set the peering port to the default value so that it is printed in the example toml file + config.node.peering_port = network_params.network.default_node_port; config.serialize_toml (toml); } else if (type == "rpc")