Skip to content

Commit

Permalink
Change default configuration to witness.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Oct 22, 2024
1 parent aa306f4 commit 8f42224
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ parser::parser(system::chain::selection context) NOEXCEPT
configured.network.outbound_connections = 100;
configured.network.protocol_minimum = level::headers_protocol;
configured.network.protocol_maximum = level::bip130;
configured.network.services_minimum = service::node_network;
configured.network.services_maximum = service::node_network |

// services_minimum must be node_witness to be a witness node.
configured.network.services_minimum = service::node_network |
service::node_witness;
configured.network.services_maximum = service::node_network |
service::node_witness;

// database
Expand Down Expand Up @@ -479,7 +482,7 @@ options_metadata parser::load_settings() THROWS
(
"network.services_minimum",
value<uint64_t>(&configured.network.services_minimum),
"The minimum services exposed by network connections, defaults to 1 (full node)."
"The minimum services exposed by network connections, defaults to 9 (full node, witness)."
)
(
"network.invalid_services",
Expand Down

0 comments on commit 8f42224

Please sign in to comment.