@@ -46,27 +46,21 @@ parser::parser(const configuration& defaults)
4646}
4747
4848// Initialize configuration using defaults of the given context.
49- parser::parser (const bc::config::settings& context)
49+ parser::parser (bc::config::settings context)
5050 : configured(context)
5151{
52- // A server/node allows 8 inbound connections by default .
53- configured.network .inbound_connections = 8 ;
52+ // Logs will slow things if not rotated .
53+ configured.network .rotation_size = 10000000 ;
5454
55- // A server/node allows 1000 host names by default .
56- configured.network .host_pool_capacity = 1000 ;
55+ // With block-first sync the count should be low until complete .
56+ configured.network .outbound_connections = 2 ;
5757
58- // A server/ node requests transaction relay by default.
59- configured.network .relay_transactions = true ;
58+ // A node allows 1000 host names by default.
59+ configured.network .host_pool_capacity = 1000 ;
6060
61- // A server/ node exposes full node (1) network services by default.
61+ // A node exposes full node (1) network services by default.
6262 configured.network .services = message::version::service::node_network;
6363
64- // A server prioritizes notification memory consumption over block speed.
65- configured.chain .priority = false ;
66-
67- // A server prioritizes restart after hard shutdown over block speed.
68- configured.database .flush_writes = true ;
69-
7064 // TODO: set this independently on each public endpoint.
7165 configured.protocol .message_size_limit = max_block_size + 100 ;
7266}
@@ -155,7 +149,7 @@ options_metadata parser::load_settings()
155149 (
156150 " log.rotation_size" ,
157151 value<size_t >(&configured.network .rotation_size ),
158- " The size at which a log is archived, defaults to 0 (disabled )."
152+ " The size at which a log is archived, defaults to 10000000 (0 disables )."
159153 )
160154 (
161155 " log.minimum_free_space" ,
@@ -221,12 +215,12 @@ options_metadata parser::load_settings()
221215 (
222216 " network.inbound_connections" ,
223217 value<uint32_t >(&configured.network .inbound_connections ),
224- " The target number of incoming network connections, defaults to 8 ."
218+ " The target number of incoming network connections, defaults to 0 ."
225219 )
226220 (
227221 " network.outbound_connections" ,
228222 value<uint32_t >(&configured.network .outbound_connections ),
229- " The target number of outgoing network connections, defaults to 8 ."
223+ " The target number of outgoing network connections, defaults to 2 ."
230224 )
231225 (
232226 " network.manual_attempt_limit" ,
@@ -261,7 +255,7 @@ options_metadata parser::load_settings()
261255 (
262256 " network.channel_expiration_minutes" ,
263257 value<uint32_t >(&configured.network .channel_expiration_minutes ),
264- " The age limit for any connection, defaults to 1440 ."
258+ " The age limit for any connection, defaults to 60 ."
265259 )
266260 (
267261 " network.channel_germination_seconds" ,
@@ -308,7 +302,7 @@ options_metadata parser::load_settings()
308302 (
309303 " database.flush_writes" ,
310304 value<bool >(&configured.database .flush_writes ),
311- " Flush each write to disk, defaults to true ."
305+ " Flush each write to disk, defaults to false ."
312306 )
313307 (
314308 " database.file_growth_rate" ,
@@ -338,7 +332,7 @@ options_metadata parser::load_settings()
338332 (
339333 " database.cache_capacity" ,
340334 value<uint32_t >(&configured.database .cache_capacity ),
341- " The maximum number of entries in the unspent outputs cache, defaults to 0 ."
335+ " The maximum number of entries in the unspent outputs cache, defaults to 10000 ."
342336 )
343337
344338 /* [blockchain] */
@@ -350,7 +344,7 @@ options_metadata parser::load_settings()
350344 (
351345 " blockchain.priority" ,
352346 value<bool >(&configured.chain .priority ),
353- " Use high thread priority for block validation, defaults to false ."
347+ " Use high thread priority for block validation, defaults to true ."
354348 )
355349 (
356350 " blockchain.use_libconsensus" ,
@@ -411,16 +405,16 @@ options_metadata parser::load_settings()
411405 )
412406
413407 /* [node] */
414- (
415- " node.sync_peers" ,
416- value<uint32_t >(&configured.node .sync_peers ),
417- " The maximum number of initial block download peers, defaults to 0 (physical cores)."
418- )
419- (
420- " node.sync_timeout_seconds" ,
421- value<uint32_t >(&configured.node .sync_timeout_seconds ),
422- " The time limit for block response during initial block download, defaults to 5."
423- )
408+ // // (
409+ // // "node.sync_peers",
410+ // // value<uint32_t>(&configured.node.sync_peers),
411+ // // "The maximum number of initial block download peers, defaults to 0 (physical cores)."
412+ // // )
413+ // // (
414+ // // "node.sync_timeout_seconds",
415+ // // value<uint32_t>(&configured.node.sync_timeout_seconds),
416+ // // "The time limit for block response during initial block download, defaults to 5."
417+ // // )
424418 (
425419 " node.block_poll_seconds" ,
426420 value<uint32_t >(&configured.node .block_poll_seconds ),
@@ -442,7 +436,7 @@ options_metadata parser::load_settings()
442436 /* Internally this is network, but it is conceptually a node setting. */
443437 " node.relay_transactions" ,
444438 value<bool >(&configured.network .relay_transactions ),
445- " Request that peers relay transactions, defaults to true ."
439+ " Request that peers relay transactions, defaults to false ."
446440 )
447441 (
448442 " node.refresh_transactions" ,
@@ -488,7 +482,7 @@ options_metadata parser::load_settings()
488482 (
489483 " server.subscription_limit" ,
490484 value<uint32_t >(&configured.server .subscription_limit ),
491- " The maximum number of query subscriptions, defaults to 10000 (0 disables subscribe )."
485+ " The maximum number of query subscriptions, defaults to 0 (subscription disabled )."
492486 )
493487 (
494488 " server.subscription_expiration_minutes" ,
@@ -498,17 +492,17 @@ options_metadata parser::load_settings()
498492 (
499493 " server.heartbeat_service_seconds" ,
500494 value<uint32_t >(&configured.server .heartbeat_service_seconds ),
501- " The heartbeat service interval, defaults to 5 (0 disables service)."
495+ " The heartbeat service interval, defaults to 0 ( service disabled )."
502496 )
503497 (
504498 " server.block_service_enabled" ,
505499 value<bool >(&configured.server .block_service_enabled ),
506- " Enable the block publishing service, defaults to true ."
500+ " Enable the block publishing service, defaults to false ."
507501 )
508502 (
509503 " server.transaction_service_enabled" ,
510504 value<bool >(&configured.server .transaction_service_enabled ),
511- " Enable the transaction publishing service, defaults to true ."
505+ " Enable the transaction publishing service, defaults to false ."
512506 )
513507 (
514508 " server.secure_query_endpoint" ,
0 commit comments