Skip to content

Commit

Permalink
Update config setting defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Dec 21, 2015
1 parent a42f763 commit 4efd6d6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
14 changes: 8 additions & 6 deletions data/bs.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ seed = dnsseed.bitcoin.dashjr.org:8333
[blockchain]
# The number of threads in the blockchain threadpool, defaults to 6.
threads = 6
# The maximum number of orphan blocks in the pool, defaults to 20.
block_pool_capacity = 20
# The maximum number of orphan blocks in the pool, defaults to 1.
block_pool_capacity = 1
# The history index start height, defaults to 0.
history_start_height = 0
# The blockchain database directory, defaults to 'blockchain'.
Expand All @@ -77,13 +77,15 @@ checkpoint = 00000000000000004d9b4ef50f0f9d686fd69db2e03af35a100370c64632a983:29
checkpoint = 000000000000000017a4b176294583519076f06cd2b5e4ef139dada8d44838d8:330791
checkpoint = 000000000000000017522241d7afd686bb2315930fc1121861c9abf52e8c37f1:337459
checkpoint = 0000000000000000086672a8c97ad666f89cf04736951791150015419810d586:368991
checkpoint = 0000000000000000006166e421051bd1ccc2bf3b80ebd2ed20c71a2eecc10633:389500
# Testnet checkpoints.
#checkpoint = 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f:0
#checkpoint = 00000000009e2958c15ff9290d571bf9459e93b19765c6801ddeccadbb160a1e:100000
#checkpoint = 0000000000287bffd321963ef05feab753ebe274e1d78b2fd4e2bfe9ad3aa6f2:200000
#checkpoint = 000000000000226f7618566e70a2b5e020e29579b46743f05348427239bf41a1:300000
#checkpoint = 000000000598cbbb1e79057b79eef828c495d4fc31050e6b179c57d07d00367c:400000
#checkpoint = 000000000001a7c0aaa2630fbb2c0e476aafffc60f82177375b2aaa22209f606:500000
#checkpoint = 000000000000624f06c69d3a9fe8d25e0a9030569128d63ad1b704bbb3059a16:600000

[node]
# The number of threads in the node threadpool, defaults to 4.
Expand All @@ -108,10 +110,10 @@ heartbeat_endpoint = tcp://*:9092
block_publish_endpoint = tcp://*:9093
# The transaction publishing service endpoint, defaults to 'tcp://*:9094'.
transaction_publish_endpoint = tcp://*:9094
# Enable the block and transaction publishing endpoints, defaults to true.
publisher_enabled = true
# Enable the query and heartbeat endpoints, defaults to true.
queries_enabled = true
# Enable the block and transaction publishing endpoints, defaults to false.
publisher_enabled = false
# Enable the query and heartbeat endpoints, defaults to false.
queries_enabled = false
# Write service requests to the log, defaults to false.
log_requests = false
# The query polling interval in milliseconds, defaults to 1000.
Expand Down
4 changes: 2 additions & 2 deletions include/bitcoin/server/server_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ namespace server {
#define SERVER_HEARTBEAT_ENDPOINT {"tcp://*:9092"}
#define SERVER_BLOCK_PUBLISH_ENDPOINT {"tcp://*:9093"}
#define SERVER_TRANSACTION_PUBLISH_ENDPOINT {"tcp://*:9094"}
#define SERVER_PUBLISHER_ENABLED true
#define SERVER_QUERIES_ENABLED true
#define SERVER_PUBLISHER_ENABLED false
#define SERVER_QUERIES_ENABLED false
#define SERVER_LOG_REQUESTS false
#define SERVER_POLLING_INTERVAL_MILLISECONDS 1000
#define SERVER_HEARTBEAT_INTERVAL_SECONDS 5
Expand Down
4 changes: 2 additions & 2 deletions src/config/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,13 @@ const options_description config_type::load_settings()
"server.publisher_enabled",
value<bool>(&settings.server.publisher_enabled)->
default_value(SERVER_PUBLISHER_ENABLED),
"Enable the block and transaction publishing endpoints, defaults to true."
"Enable the block and transaction publishing endpoints, defaults to false."
)
(
"server.queries_enabled",
value<bool>(&settings.server.queries_enabled)->
default_value(SERVER_QUERIES_ENABLED),
"Enable the query and heartbeat endpoints, defaults to true."
"Enable the query and heartbeat endpoints, defaults to false."
)
(
"server.log_requests",
Expand Down

0 comments on commit 4efd6d6

Please sign in to comment.