From 1cf1f7c5ecb5037c4f727d722f184ce41814dd13 Mon Sep 17 00:00:00 2001 From: gr0vity-dev Date: Tue, 14 May 2024 09:40:27 +0200 Subject: [PATCH] add cli support for more node flags --- nano/node/cli.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nano/node/cli.cpp b/nano/node/cli.cpp index 897204bf48..41e236bf9a 100644 --- a/nano/node/cli.cpp +++ b/nano/node/cli.cpp @@ -109,6 +109,12 @@ void nano::add_node_flag_options (boost::program_options::options_description & ("disable_unchecked_drop", "Disables drop of unchecked table at startup") ("disable_providing_telemetry_metrics", "Disable using any node information in the telemetry_ack messages.") ("disable_block_processor_unchecked_deletion", "Disable deletion of unchecked blocks after processing") + ("disable_bootstrap_bulk_pull_server", "Disables the legacy bulk pull server for bootstrap operations") + ("disable_bootstrap_bulk_push_client", "Disables the legacy bulk push client for bootstrap operations") + ("disable_tcp_realtime", "Disables TCP realtime connections") + ("disable_ongoing_telemetry_requests", "Disables ongoing telemetry requests to peers") + ("disable_block_processor_republishing", "Disables block republishing by disabling the local_block_broadcaster component") + ("disable_search_pending", "Disables the periodic search for pending transactions") ("enable_pruning", "Enable experimental ledger pruning") ("allow_bootstrap_peers_duplicates", "Allow multiple connections to same peer in bootstrap attempts") ("fast_bootstrap", "Increase bootstrap speed for high end nodes with higher limits") @@ -136,6 +142,12 @@ std::error_code nano::update_flags (nano::node_flags & flags_a, boost::program_o flags_a.disable_ascending_bootstrap = (vm.count ("disable_ascending_bootstrap") > 0); flags_a.disable_rep_crawler = (vm.count ("disable_rep_crawler") > 0); flags_a.disable_request_loop = (vm.count ("disable_request_loop") > 0); + flags_a.disable_bootstrap_bulk_pull_server = (vm.count ("disable_bootstrap_bulk_pull_server") > 0); + flags_a.disable_bootstrap_bulk_push_client = (vm.count ("disable_bootstrap_bulk_push_client") > 0); + flags_a.disable_tcp_realtime = (vm.count ("disable_tcp_realtime") > 0); + flags_a.disable_ongoing_telemetry_requests = (vm.count ("disable_ongoing_telemetry_requests") > 0); + flags_a.disable_block_processor_republishing = (vm.count ("disable_block_processor_republishing") > 0); + flags_a.disable_search_pending = (vm.count ("disable_search_pending") > 0); if (!flags_a.inactive_node) { flags_a.disable_bootstrap_listener = (vm.count ("disable_bootstrap_listener") > 0);