Skip to content

Commit 4efd6d6

Browse files
committed
Update config setting defaults.
1 parent a42f763 commit 4efd6d6

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

data/bs.cfg

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ seed = dnsseed.bitcoin.dashjr.org:8333
4949
[blockchain]
5050
# The number of threads in the blockchain threadpool, defaults to 6.
5151
threads = 6
52-
# The maximum number of orphan blocks in the pool, defaults to 20.
53-
block_pool_capacity = 20
52+
# The maximum number of orphan blocks in the pool, defaults to 1.
53+
block_pool_capacity = 1
5454
# The history index start height, defaults to 0.
5555
history_start_height = 0
5656
# The blockchain database directory, defaults to 'blockchain'.
@@ -77,13 +77,15 @@ checkpoint = 00000000000000004d9b4ef50f0f9d686fd69db2e03af35a100370c64632a983:29
7777
checkpoint = 000000000000000017a4b176294583519076f06cd2b5e4ef139dada8d44838d8:330791
7878
checkpoint = 000000000000000017522241d7afd686bb2315930fc1121861c9abf52e8c37f1:337459
7979
checkpoint = 0000000000000000086672a8c97ad666f89cf04736951791150015419810d586:368991
80+
checkpoint = 0000000000000000006166e421051bd1ccc2bf3b80ebd2ed20c71a2eecc10633:389500
8081
# Testnet checkpoints.
8182
#checkpoint = 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f:0
8283
#checkpoint = 00000000009e2958c15ff9290d571bf9459e93b19765c6801ddeccadbb160a1e:100000
8384
#checkpoint = 0000000000287bffd321963ef05feab753ebe274e1d78b2fd4e2bfe9ad3aa6f2:200000
8485
#checkpoint = 000000000000226f7618566e70a2b5e020e29579b46743f05348427239bf41a1:300000
8586
#checkpoint = 000000000598cbbb1e79057b79eef828c495d4fc31050e6b179c57d07d00367c:400000
8687
#checkpoint = 000000000001a7c0aaa2630fbb2c0e476aafffc60f82177375b2aaa22209f606:500000
88+
#checkpoint = 000000000000624f06c69d3a9fe8d25e0a9030569128d63ad1b704bbb3059a16:600000
8789

8890
[node]
8991
# The number of threads in the node threadpool, defaults to 4.
@@ -108,10 +110,10 @@ heartbeat_endpoint = tcp://*:9092
108110
block_publish_endpoint = tcp://*:9093
109111
# The transaction publishing service endpoint, defaults to 'tcp://*:9094'.
110112
transaction_publish_endpoint = tcp://*:9094
111-
# Enable the block and transaction publishing endpoints, defaults to true.
112-
publisher_enabled = true
113-
# Enable the query and heartbeat endpoints, defaults to true.
114-
queries_enabled = true
113+
# Enable the block and transaction publishing endpoints, defaults to false.
114+
publisher_enabled = false
115+
# Enable the query and heartbeat endpoints, defaults to false.
116+
queries_enabled = false
115117
# Write service requests to the log, defaults to false.
116118
log_requests = false
117119
# The query polling interval in milliseconds, defaults to 1000.

include/bitcoin/server/server_node.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ namespace server {
3737
#define SERVER_HEARTBEAT_ENDPOINT {"tcp://*:9092"}
3838
#define SERVER_BLOCK_PUBLISH_ENDPOINT {"tcp://*:9093"}
3939
#define SERVER_TRANSACTION_PUBLISH_ENDPOINT {"tcp://*:9094"}
40-
#define SERVER_PUBLISHER_ENABLED true
41-
#define SERVER_QUERIES_ENABLED true
40+
#define SERVER_PUBLISHER_ENABLED false
41+
#define SERVER_QUERIES_ENABLED false
4242
#define SERVER_LOG_REQUESTS false
4343
#define SERVER_POLLING_INTERVAL_MILLISECONDS 1000
4444
#define SERVER_HEARTBEAT_INTERVAL_SECONDS 5

src/config/settings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,13 +334,13 @@ const options_description config_type::load_settings()
334334
"server.publisher_enabled",
335335
value<bool>(&settings.server.publisher_enabled)->
336336
default_value(SERVER_PUBLISHER_ENABLED),
337-
"Enable the block and transaction publishing endpoints, defaults to true."
337+
"Enable the block and transaction publishing endpoints, defaults to false."
338338
)
339339
(
340340
"server.queries_enabled",
341341
value<bool>(&settings.server.queries_enabled)->
342342
default_value(SERVER_QUERIES_ENABLED),
343-
"Enable the query and heartbeat endpoints, defaults to true."
343+
"Enable the query and heartbeat endpoints, defaults to false."
344344
)
345345
(
346346
"server.log_requests",

0 commit comments

Comments
 (0)