aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.inl
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2019-02-25 01:31:45 +0000
committerxiphon <xiphon@protonmail.com>2019-02-25 03:22:14 +0000
commita54e81e57213aa6a983401b20c3e150550a6e948 (patch)
treefd0abbc73494e0ad5f503529184d49ec4c803ca6 /src/p2p/net_node.inl
parentMerge pull request #4988 (diff)
downloadmonero-a54e81e57213aa6a983401b20c3e150550a6e948.tar.xz
daemon: add '--no-sync' arg to optionally disable blockchain sync
Diffstat (limited to '')
-rw-r--r--src/p2p/net_node.inl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index 471fdda0d..08c5d3f27 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -103,6 +103,7 @@ namespace nodetool
command_line::add_arg(desc, arg_proxy);
command_line::add_arg(desc, arg_anonymous_inbound);
command_line::add_arg(desc, arg_p2p_hide_my_port);
+ command_line::add_arg(desc, arg_no_sync);
command_line::add_arg(desc, arg_no_igd);
command_line::add_arg(desc, arg_out_peers);
command_line::add_arg(desc, arg_in_peers);
@@ -310,6 +311,9 @@ namespace nodetool
if(command_line::has_arg(vm, arg_p2p_hide_my_port))
m_hide_my_port = true;
+ if (command_line::has_arg(vm, arg_no_sync))
+ m_payload_handler.set_no_sync(true);
+
if ( !set_max_out_peers(public_zone, command_line::get_arg(vm, arg_out_peers) ) )
return false;
else