• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

libbitcoin / libbitcoin-server / 44845974736

21 Nov 2026 12:45AM UTC coverage: 95.044% (-0.1%) from 95.15%
44845974736

push

github

web-flow
Merge pull request #1200 from evoskuil/master

btcd cleanup, return bad target on versioned native/admin fail to parse.

49 of 66 new or added lines in 8 files covered. (74.24%)

14 existing lines in 4 files now uncovered.

12829 of 13498 relevant lines covered (95.04%)

451.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

99.14
/src/parser.cpp
1
/**
2
 * Copyright (c) 2011-2026 libbitcoin developers
3
 *
4
 * This file is part of libbitcoin.
5
 *
6
 * This program is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU Affero General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU Affero General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU Affero General Public License
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
 */
19
#include <bitcoin/server/parser.hpp>
20

21
#include <filesystem>
22
#include <bitcoin/server/configuration.hpp>
23
#include <bitcoin/server/define.hpp>
24
#include <bitcoin/server/server_node.hpp>
25
#include <bitcoin/server/settings.hpp>
26

27
////std::filesystem::path config_default_path() NOEXCEPT
28
////{
29
////    return { "libbitcoin/bn.cfg" };
30
////}
31

32
namespace libbitcoin {
33
namespace server {
34

35
using namespace bc::system;
36
using namespace bc::system::config;
37
namespace table = bc::database::table;
38
using namespace bc::system::options;
39

40
// Initialize configuration using defaults of the given context.
41
parser::parser(system::chain::selection context,
36 ✔
42
    const server::settings::embedded_pages& native,
43
    const server::settings::embedded_pages& admin) NOEXCEPT
36 ✔
44
  : configured(context, native, admin)
36 ✔
45
{
46
}
36 ✔
47

48
// Hashmap buckets derive from expected and installed memory; a configured
49
// count governs, and zero disables an optional table.
50
void parser::derive_buckets() NOEXCEPT
36 ✔
51
{
52
    constexpr uint32_t contested = 75;
53
    constexpr uint32_t target = 25;
54
    constexpr uint32_t address_contested = 500;
55
    constexpr uint32_t address_target = 50;
56
    auto& database = configured.database;
57

58
    if (!is_configured("table.header.buckets"))
36 ✔
59
        database.header.buckets = table::header::derive_buckets(
36 ✔
60
            database.header.expected, contested, target);
61

62
    if (!is_configured("table.tx.buckets"))
36 ✔
63
        database.tx.buckets = table::transaction::derive_buckets(
36 ✔
64
            database.tx.expected, contested, target);
65

66
    if (!is_configured("table.strong.buckets"))
36 ✔
67
        database.strong.buckets = possible_narrow_cast<uint32_t>(
35 ✔
68
            database.tx.expected);
69

70
    if (!is_configured("table.ins.buckets"))
36 ✔
71
        database.ins.buckets = table::ins::derive_buckets(
36 ✔
72
            database.ins.expected, contested, target);
73

74
    if (!is_configured("table.outs.buckets"))
36 ✔
75
        database.outs.buckets = table::outs::derive_buckets(
36 ✔
76
            database.outs.expected, address_contested, address_target);
77

78
    if (!is_configured("table.pool.buckets"))
36 ✔
79
        database.pool.buckets = table::pool::derive_buckets(
36 ✔
80
            database.pool.expected, contested, target);
81

82
    if (!is_configured("table.wtxid.buckets"))
36 ✔
83
        database.wtxid.buckets = table::wtxid::derive_buckets(
36 ✔
84
            database.wtxid.expected, contested, target);
85
}
36 ✔
86

87
// A specified network governs, otherwise configuration, otherwise the network
88
// of a configured genesis block.
89
void parser::select_network() NOEXCEPT
34 ✔
90
{
91
    const chain::selection selected = configured.net;
34 ✔
92
    const auto specified = selected != chain::selection::none;
93

94
    chain::selection network = configured.bitcoin.network;
34 ✔
95
    if (specified)
34 ✔
96
    {
97
        network = selected;
98
    }
99
    else if (!is_configured("bitcoin.network") &&
34 ✔
100
        is_configured("bitcoin.genesis_block"))
21 ✔
101
    {
102
        configured.bitcoin.initialize();
2 ✔
103
        if (configured.bitcoin.genesis_network != chain::selection::none)
2 ✔
104
            network = configured.bitcoin.genesis_network;
105
    }
106

107
    if (network != configured.node.network)
34 ✔
108
        reset_network(network);
24 ✔
109

110
    if (specified)
34 ✔
111
        configured.bitcoin.network = network;
21 ✔
112
}
34 ✔
113

114
// The network-named directory, under the configured root.
115
void parser::select_root() NOEXCEPT
34 ✔
116
{
117
    const auto network = config::selection::to_word(configured.node.network);
34 ✔
118
    root_ = configured.server.path / std::string{ network };
34 ✔
119
}
34 ✔
120

121
// Paths are relative to the network directory.
122
void parser::select_paths() NOEXCEPT
34 ✔
123
{
124
    const auto relative = [this](config::path& path) NOEXCEPT
1,020 ✔
125
    {
126
        if (!path.empty())
1,020 ✔
127
            path = root_ / path;
4 ✔
128
    };
1,020 ✔
129

130
    const auto rooted = [this](config::path& path) NOEXCEPT
136 ✔
131
    {
132
        path = path.empty() ? root_ : root_ / path;
136 ✔
133
    };
136 ✔
134

135
    const auto secured = [&](network::settings::tls_server& service) NOEXCEPT
306 ✔
136
    {
137
        relative(service.cert_auth);
306 ✔
138
        relative(service.cert_path);
306 ✔
139
        relative(service.key_path);
306 ✔
140
    };
340 ✔
141

142
    if (!is_configured("folders.store"))
34 ✔
143
        configured.database.path = "store";
33 ✔
144

145
    rooted(configured.database.path);
34 ✔
146
    rooted(configured.network.path);
34 ✔
147
    rooted(configured.log.console_path);
34 ✔
148
    rooted(configured.log.events_path);
34 ✔
149
    relative(configured.network.inbound.key_path);
34 ✔
150
    relative(configured.server.admin.path);
34 ✔
151
    relative(configured.server.native.path);
34 ✔
152
    secured(configured.server.admin);
34 ✔
153
    secured(configured.server.native);
34 ✔
154
    secured(configured.server.bitcoind);
34 ✔
155
    secured(configured.server.btcd);
34 ✔
156
    secured(configured.server.electrum);
34 ✔
157
    secured(configured.server.sparrow);
34 ✔
158
    secured(configured.server.esplora);
34 ✔
159
    secured(configured.server.stratum_v1);
34 ✔
160
    secured(configured.server.stratum_v2);
34 ✔
161

162
#if defined (HAVE_WINDOWS)
163
    relative(configured.log.symbols_path);
164
#endif
165
}
34 ✔
166

167
// The network of an existing store governs at its path, for commands that
168
// use the store.
169
void parser::read_envelope() NOEXCEPT
4 ✔
170
{
171
    if (configured.make || configured.help || configured.hardware ||
4 ✔
172
        configured.daemon.has_value())
3 ✔
173
        return;
2 ✔
174

175
    server_node::store store{ configured.database };
3 ✔
176
    stored.require_witness = configured.node.require_witness;
3 ✔
177
    stored_code = store.read_envelope(stored);
3 ✔
178
    if (stored_code)
3 ✔
179
        return;
180

181
    if (stored.network != configured.node.network)
2 ✔
182
    {
183
        const chain::selection selected = configured.net;
2 ✔
184
        const auto specified = selected != chain::selection::none;
185

186
        reset_network(stored.network);
2 ✔
187
        derive_buckets();
2 ✔
188

189
        // A specified network is retained as configured, for override reporting.
190
        if (specified)
2 ✔
191
            configured.bitcoin.network = selected;
1 ✔
192
    }
193

194
    const auto& node = configured.node;
195
    current =
196
    {
197
        configured.bitcoin,
2 ✔
198
        configured.database,
199
        node.limited_blocks,
2 ✔
200
        node.provide_filters,
2 ✔
201
        node.require_witness,
2 ✔
202
        node.silent_start_height
2 ✔
203
    };
2 ✔
204

205
    overrides = stored.apply(
2 ✔
206
        configured.bitcoin,
207
        configured.database,
208
        configured.node.limited_blocks,
2 ✔
209
        configured.node.require_witness,
2 ✔
210
        configured.node.silent_start_height);
2 ✔
211
}
3 ✔
212

213
// Network defaults are reset, and then configured settings are reapplied.
214
// Paths are retained, as they are network independent once resolved.
215
void parser::reset_network(chain::selection context) NOEXCEPT
26 ✔
216
{
217
    const auto store = configured.database.path;
26 ✔
218
    const auto peers = configured.network.path;
26 ✔
219
    const auto key = configured.network.inbound.key_path;
26 ✔
220

221
    configured.bitcoin = system::settings{ context };
26 ✔
222
    configured.database = database::settings{ context };
26 ✔
223
    configured.network = network::settings{ context };
26 ✔
224
    configured.node = node::settings{ context };
26 ✔
225
    configured.server.network = context;
26 ✔
226
    configured.server.wallet = server::settings::wallet_settings{ context };
26 ✔
227

228
    BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
229
    for (const auto& option: settings().options())
12,506 ✔
230
    {
231
        const auto& name = option->long_name();
12,480 ✔
232
        if (is_configured(name))
12,480 ✔
233
            option->semantic()->notify(variables().at(name).value());
57 ✔
234
    }
235
    BC_POP_WARNING()
236

237
    configured.database.path = store;
26 ✔
238
    configured.network.path = peers;
26 ✔
239
    configured.network.inbound.key_path = key;
26 ✔
240
}
26 ✔
241

242
// Composes a variable name with its command line shortcut.
243
static std::string alias(const std::string& variable, char shortcut)
612 ✔
244
{
245
    return variable + ',' + shortcut;
612 ✔
246
}
247

248
options_metadata parser::load_options() THROWS
36 ✔
249
{
250
    options_metadata description("options");
36 ✔
251
    description.add_options()
36 ✔
252
    (
72 ✔
253
        alias(config_variable, 'c').c_str(),
72 ✔
254
        value<config::path>(&configured.file),
36 ✔
255
        "Specify path to a configuration settings file."
256
    )
257
    (
72 ✔
258
        alias(net_variable, 'n').c_str(),
72 ✔
259
        value<config::selection>(&configured.net),
36 ✔
260
        ("Specify the network (" + config::selection::names() + "), "
72 ✔
261
            "defaults to the configured network.").c_str()
262
    )
263
    // Prompts.
264
    (
108 ✔
265
        alias(accept_variable, 'a').c_str(),
72 ✔
266
        value<bool>(&configured.accept)->
267
            default_value(false)->zero_tokens(),
72 ✔
268
        "Accept startup prompts without interaction."
269
    )
270
    // Information.
271
    (
108 ✔
272
        alias(help_variable, 'h').c_str(),
72 ✔
273
        value<bool>(&configured.help)->
274
            default_value(false)->zero_tokens(),
72 ✔
275
        "Display command line options."
276
    )
277
    (
108 ✔
278
        alias(hardware_variable, 'w').c_str(),
72 ✔
279
        value<bool>(&configured.hardware)->
280
            default_value(false)->zero_tokens(),
72 ✔
281
        "Display hardware compatibility."
282
    )
283
    (
108 ✔
284
        alias(settings_variable, 's').c_str(),
72 ✔
285
        value<bool>(&configured.settings)->
286
            default_value(false)->zero_tokens(),
72 ✔
287
        "Display all configuration settings."
288
    )
289
    (
108 ✔
290
        alias(version_variable, 'v').c_str(),
72 ✔
291
        value<bool>(&configured.version)->
292
            default_value(false)->zero_tokens(),
72 ✔
293
        "Display version information."
294
    )
295
    // Actions.
296
    (
108 ✔
297
        alias(make_variable, 'm').c_str(),
72 ✔
298
        value<bool>(&configured.make)->
299
            default_value(false)->zero_tokens(),
72 ✔
300
        "Make new store in configured directory."
301
    )
302
    (
108 ✔
303
        alias(backup_variable, 'b').c_str(),
72 ✔
304
        value<bool>(&configured.backup)->
305
            default_value(false)->zero_tokens(),
72 ✔
306
        "Backup to a snapshot (can also do live)."
307
    )
308
    (
108 ✔
309
        alias(restore_variable, 'r').c_str(),
72 ✔
310
        value<bool>(&configured.restore)->
311
            default_value(false)->zero_tokens(),
72 ✔
312
        "Restore from most recent snapshot."
313
    )
314
    (
108 ✔
315
        alias(transform_variable, 't').c_str(),
72 ✔
316
        value<bool>(&configured.transform)->
317
            default_value(false)->zero_tokens(),
72 ✔
318
        "Migrate the store to the compiled schema."
319
    )
320
    // Service.
321
    (
108 ✔
322
        alias(daemon_variable, 'd').c_str(),
72 ✔
323
        value<bool>()->implicit_value(true)->
72 ✔
324
            notifier([&](bool value) { configured.daemon = value; }),
72 ✔
325
        "Install ('true') or uninstall ('false') as a daemon."
326
    )
327
    (
108 ✔
328
        alias(user_variable, 'u').c_str(),
72 ✔
329
        value<network::config::credential>()->
330
            notifier([&](const network::config::credential& value)
72 ✔
UNCOV
331
                { configured.user = value; }),
×
332
        "Daemon logon credential, defaults to system account."
333
    )
334
    // Chain scans.
335
    (
108 ✔
336
        alias(flags_variable, 'f').c_str(),
72 ✔
337
        value<bool>(&configured.flags)->
338
            default_value(false)->zero_tokens(),
72 ✔
339
        "Scan and display all flag transitions."
340
    )
341
    (
108 ✔
342
        alias(buckets_variable, 'k').c_str(),
72 ✔
343
        value<bool>(&configured.buckets)->
344
            default_value(false)->zero_tokens(),
72 ✔
345
        "Scan and display hashmap bucket fill."
346
    )
347
    (
108 ✔
348
        alias(collisions_variable, 'l').c_str(),
72 ✔
349
        value<bool>(&configured.collisions)->
350
            default_value(false)->zero_tokens(),
72 ✔
351
        "Scan and show hashmap collision stats (may SIGKILL)."
352
    )
353
    (
108 ✔
354
        alias(information_variable, 'i').c_str(),
72 ✔
355
        value<bool>(&configured.information)->
356
            default_value(false)->zero_tokens(),
72 ✔
357
        "Scan and display store information."
358
    );
359

360
#if defined(HAVE_SELF_TESTS)
361
    description.add_options()
362
    // Ad-hoc Testing.
363
    (
364
        alias(get_variable, 'g').c_str(),
365
        value<config::hash256>(&configured.get)->
366
            default_value(system::null_hash),
367
        "Run built-in read test and display."
368
    )
369
    (
370
        alias(put_variable, 'p').c_str(),
371
        value<config::hash256>(&configured.put)->
372
            default_value(system::null_hash),
373
        "Run built-in write test and display."
374
    );
375
#endif
376

377
    return description;
36 ✔
UNCOV
378
}
×
379

380
arguments_metadata parser::load_arguments() THROWS
36 ✔
381
{
382
    // There are no positional arguments, the config path requires --config.
383
    return arguments_metadata{};
36 ✔
384
}
385

UNCOV
386
options_metadata parser::load_environment() THROWS
×
387
{
UNCOV
388
    options_metadata description("environment");
×
UNCOV
389
    description.add_options()
×
UNCOV
390
    (
×
391
        // For some reason po requires this to be a lower case name.
392
        // The case must match the other declarations for it to compose.
393
        // This composes with the cmdline options and inits to default path.
394
        config_variable,
UNCOV
395
        value<config::path>(&configured.file)->composing()
×
396
            /*->default_value(config_default_path())*/,
397
        "The path to the configuration settings file."
398
    );
399

UNCOV
400
    return description;
×
UNCOV
401
}
×
402

403
options_metadata parser::load_settings() THROWS
34 ✔
404
{
405
    options_metadata description("settings");
34 ✔
406
    description.add_options()
34 ✔
407

408
    /* [folders] */
409
    (
102 ✔
410
        "folders.root",
411
        setting<config::path>(&configured.server.path),
34 ✔
412
        "The base of the network-named directory, defaults to the working directory."
413
    )
414
    (
102 ✔
415
        "folders.peers",
416
        setting<config::path>(&configured.network.path),
34 ✔
417
        "The peer address cache directory, relative to the network directory, defaults to it."
418
    )
419
    (
102 ✔
420
        "folders.events",
421
        setting<config::path>(&configured.log.events_path),
34 ✔
422
        "The events log directory, relative to the network directory, defaults to it."
423
    )
424
    (
102 ✔
425
        "folders.console",
426
        setting<config::path>(&configured.log.console_path),
34 ✔
427
        "The console log files directory, relative to the network directory, defaults to it."
428
    )
429
    (
102 ✔
430
        "folders.store",
431
        setting<config::path>(&configured.database.path),
34 ✔
432
        "The store directory, relative to the network directory, defaults to 'store'."
433
    )
434
    (
102 ✔
435
        "folders.admin",
436
        setting<config::path>(&configured.server.admin.path),
34 ✔
437
        "The admin web site directory, relative to the network directory, defaults to embedded pages."
438
    )
439
    (
102 ✔
440
        "folders.native",
441
        setting<config::path>(&configured.server.native.path),
34 ✔
442
        "The native web site directory, relative to the network directory, defaults to embedded pages."
443
    )
444
#if defined (HAVE_WINDOWS)
445
    (
446
        "folders.symbols",
447
        setting<config::path>(&configured.log.symbols_path),
448
        "The windows symbols (.pdb) directory, relative to the network directory, defaults to {}."
449
    )
450
#endif
451

452
    /* [forks] */
453
    (
102 ✔
454
        "forks.difficult",
455
        setting<bool>(&configured.bitcoin.forks.difficult),
34 ✔
456
        "Require difficult blocks, defaults to {} (use false for testnet)."
457
    )
458
    (
102 ✔
459
        "forks.retarget",
460
        setting<bool>(&configured.bitcoin.forks.retarget),
34 ✔
461
        "Retarget difficulty, defaults to {} (use false for regtest)."
462
    )
463
    (
102 ✔
464
        "forks.bip16",
465
        setting<bool>(&configured.bitcoin.forks.bip16),
34 ✔
466
        "Add pay-to-script-hash processing, defaults to {} (soft fork)."
467
    )
468
    (
102 ✔
469
        "forks.bip30",
470
        setting<bool>(&configured.bitcoin.forks.bip30),
34 ✔
471
        "Disallow collision of unspent transaction hashes, defaults to {} (soft fork)."
472
    )
473
    (
102 ✔
474
        "forks.bip34",
475
        setting<bool>(&configured.bitcoin.forks.bip34),
34 ✔
476
        "Require coinbase input includes block height, defaults to {} (soft fork)."
477
    )
478
    (
102 ✔
479
        "forks.bip42",
480
        setting<bool>(&configured.bitcoin.forks.bip42),
34 ✔
481
        "Finite monetary supply, defaults to {} (soft fork)."
482
    )
483
    (
102 ✔
484
        "forks.bip66",
485
        setting<bool>(&configured.bitcoin.forks.bip66),
34 ✔
486
        "Require strict signature encoding, defaults to {} (soft fork)."
487
    )
488
    (
102 ✔
489
        "forks.bip65",
490
        setting<bool>(&configured.bitcoin.forks.bip65),
34 ✔
491
        "Add check-locktime-verify op code, defaults to {} (soft fork)."
492
    )
493
    (
102 ✔
494
        "forks.bip90",
495
        setting<bool>(&configured.bitcoin.forks.bip90),
34 ✔
496
        "Freeze bip34, bip65, and bip66 activation at the bip90 heights, defaults to {} (hard fork)."
497
    )
498
    (
102 ✔
499
        "forks.bip68",
500
        setting<bool>(&configured.bitcoin.forks.bip68),
34 ✔
501
        "Add relative locktime enforcement, defaults to {} (soft fork)."
502
    )
503
    (
102 ✔
504
        "forks.bip112",
505
        setting<bool>(&configured.bitcoin.forks.bip112),
34 ✔
506
        "Add check-sequence-verify op code, defaults to {} (soft fork)."
507
    )
508
    (
102 ✔
509
        "forks.bip113",
510
        setting<bool>(&configured.bitcoin.forks.bip113),
34 ✔
511
        "Use median time past for locktime, defaults to {} (soft fork)."
512
    )
513
    (
102 ✔
514
        "forks.bip141",
515
        setting<bool>(&configured.bitcoin.forks.bip141),
34 ✔
516
        "Segregated witness consensus layer, defaults to {} (soft fork)."
517
    )
518
    (
102 ✔
519
        "forks.bip143",
520
        setting<bool>(&configured.bitcoin.forks.bip143),
34 ✔
521
        "Witness version 0 (segwit), defaults to {} (soft fork)."
522
    )
523
    (
102 ✔
524
        "forks.bip147",
525
        setting<bool>(&configured.bitcoin.forks.bip147),
34 ✔
526
        "Prevent dummy value malleability, defaults to {} (soft fork)."
527
    )
528
    (
102 ✔
529
        "forks.bip341",
530
        setting<bool>(&configured.bitcoin.forks.bip341),
34 ✔
531
        "Witness version 1 (taproot), defaults to {} (soft fork)."
532
    )
533
    (
102 ✔
534
        "forks.bip342",
535
        setting<bool>(&configured.bitcoin.forks.bip342),
34 ✔
536
        "Validation of taproot script, defaults to {} (soft fork)."
537
    )
538
    (
102 ✔
539
        "forks.bip54_timewarp",
540
        setting<bool>(&configured.bitcoin.forks.bip54_timewarp),
34 ✔
541
        "Limit timestamp regression on retarget blocks, defaults to {} (soft fork)."
542
    )
543
    (
102 ✔
544
        "forks.bip54_timespan",
545
        setting<bool>(&configured.bitcoin.forks.bip54_timespan),
34 ✔
546
        "Require non-negative retarget timespans, defaults to {} (soft fork)."
547
    )
548
    (
102 ✔
549
        "forks.bip54_sigops",
550
        setting<bool>(&configured.bitcoin.forks.bip54_sigops),
34 ✔
551
        "Limit legacy signature operations per transaction, defaults to {} (soft fork)."
552
    )
553
    (
102 ✔
554
        "forks.bip54_txsize",
555
        setting<bool>(&configured.bitcoin.forks.bip54_txsize),
34 ✔
556
        "Disallow 64 byte witness-stripped transactions, defaults to {} (soft fork)."
557
    )
558
    (
102 ✔
559
        "forks.bip54_coinbase",
560
        setting<bool>(&configured.bitcoin.forks.bip54_coinbase),
34 ✔
561
        "Require coinbase locktime of parent height and non-final sequence, defaults to {} (soft fork)."
562
    )
563
    (
102 ✔
564
        "forks.time_warp_patch",
565
        setting<bool>(&configured.bitcoin.forks.time_warp_patch),
34 ✔
566
        "Assume time_warp_patch activation if enabled, defaults to {} (testnet4)."
567
    )
568
    (
102 ✔
569
        "forks.block_storm_patch",
570
        setting<bool>(&configured.bitcoin.forks.block_storm_patch),
34 ✔
571
        "Assume block_storm_patch activation if enabled, defaults to {} (testnet4)."
572
    )
573
    (
102 ✔
574
        "forks.signet",
575
        setting<bool>(&configured.bitcoin.forks.signet),
34 ✔
576
        "Require signet block solutions, defaults to {} (signet)."
577
    )
578
    (
102 ✔
579
        "forks.ltc_time_warp_patch",
580
        setting<bool>(&configured.bitcoin.forks.ltc_time_warp_patch),
34 ✔
581
        "Fix time warp bug, defaults to {} (litecoin)."
582
    )
583
    (
102 ✔
584
        "forks.ltc_retarget_overflow_patch",
585
        setting<bool>(&configured.bitcoin.forks.ltc_retarget_overflow_patch),
34 ✔
586
        "Fix target overflow for very low difficulty, defaults to {} (litecoin)."
587
    )
588
    (
102 ✔
589
        "forks.ltc_scrypt_proof_of_work",
590
        setting<bool>(&configured.bitcoin.forks.ltc_scrypt_proof_of_work),
34 ✔
591
        "Use scrypt hashing for proof of work, defaults to {} (litecoin)."
592
    )
593

594
    /* [bitcoin] */
595
    (
102 ✔
596
        "bitcoin.network",
597
        setting<config::selection>(&configured.bitcoin.network),
34 ✔
598
        ("The network of the defaults (" + config::selection::names() +
68 ✔
599
            "), defaults to {}.").c_str()
600
    )
601
    (
102 ✔
602
        "bitcoin.initial_block_subsidy_bitcoin",
603
        setting<uint64_t>(&configured.bitcoin.initial_subsidy_bitcoin),
34 ✔
604
        "The initial block subsidy, defaults to {}."
605
    )
606
    (
102 ✔
607
        "bitcoin.subsidy_interval",
608
        setting<uint32_t>(&configured.bitcoin.subsidy_interval_blocks),
34 ✔
609
        "The subsidy halving period, defaults to {}."
610
    )
611
    (
102 ✔
612
        "bitcoin.timestamp_limit_seconds",
613
        setting<uint32_t>(&configured.bitcoin.timestamp_limit_seconds),
34 ✔
614
        "The future timestamp allowance, defaults to {}."
615
    )
616
    (
102 ✔
617
        "bitcoin.retargeting_factor",
618
        setting<uint32_t>(&configured.bitcoin.retargeting_factor),
34 ✔
619
        "The difficulty retargeting factor, defaults to {}."
620
    )
621
    (
102 ✔
622
        "bitcoin.retargeting_interval_seconds",
623
        setting<uint32_t>(&configured.bitcoin.retargeting_interval_seconds),
34 ✔
624
        "The difficulty retargeting period, defaults to {}."
625
    )
626
    (
102 ✔
627
        "bitcoin.block_spacing_seconds",
628
        setting<uint32_t>(&configured.bitcoin.block_spacing_seconds),
34 ✔
629
        "The target block period, defaults to {}."
630
    )
631
    (
102 ✔
632
        "bitcoin.proof_of_work_limit",
633
        setting<uint32_t>(&configured.bitcoin.proof_of_work_limit),
34 ✔
634
        "The proof of work limit, defaults to {}."
635
    )
636
    (
102 ✔
637
        "bitcoin.genesis_block",
638
        setting<config::block>(&configured.bitcoin.genesis_block),
34 ✔
639
        "The hexadecimal encoding of the genesis block, defaults to mainnet, "
640
        "the genesis of a known network sets the network if not specified."
641
    )
642
    (
102 ✔
643
        "bitcoin.signet_challenge",
644
        setting<config::script>(&configured.bitcoin.signet_challenge),
34 ✔
645
        "The signet block challenge script, defaults to none (signet)."
646
    )
647
    (
102 ✔
648
        "bitcoin.checkpoint",
649
        setting<chain::checkpoints>(&configured.bitcoin.checkpoints),
34 ✔
650
        "The blockchain checkpoints, defaults to the consensus set."
651
    )
652
    // [version properties excluded here]
653
    (
102 ✔
654
        "bitcoin.bip16_activation_time",
655
        setting<uint32_t>(&configured.bitcoin.bip16_activation_time),
34 ✔
656
        "The activation time for bip16 in unix time, defaults to {}."
657
    )
658
    (
102 ✔
659
        "bitcoin.bip34_activation_threshold",
660
        setting<size_t>(&configured.bitcoin.bip34_activation_threshold),
34 ✔
661
        "The number of new version blocks required for bip34 style soft fork activation, defaults to {}."
662
    )
663
    (
102 ✔
664
        "bitcoin.bip34_enforcement_threshold",
665
        setting<size_t>(&configured.bitcoin.bip34_enforcement_threshold),
34 ✔
666
        "The number of new version blocks required for bip34 style soft fork enforcement, defaults to {}."
667
    )
668
    (
102 ✔
669
        "bitcoin.bip34_activation_sample",
670
        setting<size_t>(&configured.bitcoin.bip34_activation_sample),
34 ✔
671
        "The number of blocks considered for bip34 style soft fork activation, defaults to {}."
672
    )
673
    (
102 ✔
674
        "bitcoin.bip34_freeze",
675
        setting<size_t>(&configured.bitcoin.bip90_bip34_height),
34 ✔
676
        "The block height to freeze the bip34 softfork for bip90, defaults to {}."
677
    )
678
    (
102 ✔
679
        "bitcoin.bip65_freeze",
680
        setting<size_t>(&configured.bitcoin.bip90_bip65_height),
34 ✔
681
        "The block height to freeze the bip65 softfork for bip90, defaults to {}."
682
    )
683
    (
102 ✔
684
        "bitcoin.bip66_freeze",
685
        setting<size_t>(&configured.bitcoin.bip90_bip66_height),
34 ✔
686
        "The block height to freeze the bip66 softfork for bip90, defaults to {}."
687
    )
688
    (
102 ✔
689
        "bitcoin.bip9_activation_period",
690
        setting<size_t>(&configured.bitcoin.bip9_activation_period),
34 ✔
691
        "The number of blocks in a bip9 signaling period, defaults to {}."
692
    )
693
    (
102 ✔
694
        "bitcoin.bip9_bit0_start",
695
        setting<uint32_t>(&configured.bitcoin.bip9_bit0_deployment.start),
34 ✔
696
        "The median time past to start bip9 bit0 signaling, 4294967295 for always active, defaults to {}."
697
    )
698
    (
102 ✔
699
        "bitcoin.bip9_bit0_timeout",
700
        setting<uint32_t>(&configured.bitcoin.bip9_bit0_deployment.timeout),
34 ✔
701
        "The median time past to time out bip9 bit0 signaling, defaults to {}."
702
    )
703
    (
102 ✔
704
        "bitcoin.bip9_bit0_threshold",
705
        setting<size_t>(&configured.bitcoin.bip9_bit0_deployment.threshold),
34 ✔
706
        "The signaling blocks per period to lock in bip9 bit0, zero to disable, defaults to {}."
707
    )
708
    (
102 ✔
709
        "bitcoin.bip9_bit0_activation_height",
710
        setting<size_t>(&configured.bitcoin.bip9_bit0_deployment.activation_height),
34 ✔
711
        "The minimum bip9 bit0 activation height, defaults to {}."
712
    )
713
    (
102 ✔
714
        "bitcoin.bip9_bit0_speedy_trial",
715
        setting<bool>(&configured.bitcoin.bip9_bit0_deployment.speedy),
34 ✔
716
        "Check the bip9 bit0 threshold before timeout (speedy trial), defaults to {}."
717
    )
718
    (
102 ✔
719
        "bitcoin.bip9_bit1_start",
720
        setting<uint32_t>(&configured.bitcoin.bip9_bit1_deployment.start),
34 ✔
721
        "The median time past to start bip9 bit1 signaling, 4294967295 for always active, defaults to {}."
722
    )
723
    (
102 ✔
724
        "bitcoin.bip9_bit1_timeout",
725
        setting<uint32_t>(&configured.bitcoin.bip9_bit1_deployment.timeout),
34 ✔
726
        "The median time past to time out bip9 bit1 signaling, defaults to {}."
727
    )
728
    (
102 ✔
729
        "bitcoin.bip9_bit1_threshold",
730
        setting<size_t>(&configured.bitcoin.bip9_bit1_deployment.threshold),
34 ✔
731
        "The signaling blocks per period to lock in bip9 bit1, zero to disable, defaults to {}."
732
    )
733
    (
102 ✔
734
        "bitcoin.bip9_bit1_activation_height",
735
        setting<size_t>(&configured.bitcoin.bip9_bit1_deployment.activation_height),
34 ✔
736
        "The minimum bip9 bit1 activation height, defaults to {}."
737
    )
738
    (
102 ✔
739
        "bitcoin.bip9_bit1_speedy_trial",
740
        setting<bool>(&configured.bitcoin.bip9_bit1_deployment.speedy),
34 ✔
741
        "Check the bip9 bit1 threshold before timeout (speedy trial), defaults to {}."
742
    )
743
    (
102 ✔
744
        "bitcoin.bip9_bit2_start",
745
        setting<uint32_t>(&configured.bitcoin.bip9_bit2_deployment.start),
34 ✔
746
        "The median time past to start bip9 bit2 signaling, 4294967295 for always active, defaults to {}."
747
    )
748
    (
102 ✔
749
        "bitcoin.bip9_bit2_timeout",
750
        setting<uint32_t>(&configured.bitcoin.bip9_bit2_deployment.timeout),
34 ✔
751
        "The median time past to time out bip9 bit2 signaling, defaults to {}."
752
    )
753
    (
102 ✔
754
        "bitcoin.bip9_bit2_threshold",
755
        setting<size_t>(&configured.bitcoin.bip9_bit2_deployment.threshold),
34 ✔
756
        "The signaling blocks per period to lock in bip9 bit2, zero to disable, defaults to {}."
757
    )
758
    (
102 ✔
759
        "bitcoin.bip9_bit2_activation_height",
760
        setting<size_t>(&configured.bitcoin.bip9_bit2_deployment.activation_height),
34 ✔
761
        "The minimum bip9 bit2 activation height, defaults to {}."
762
    )
763
    (
102 ✔
764
        "bitcoin.bip9_bit2_speedy_trial",
765
        setting<bool>(&configured.bitcoin.bip9_bit2_deployment.speedy),
34 ✔
766
        "Check the bip9 bit2 threshold before timeout (speedy trial), defaults to {}."
767
    )
768
    (
102 ✔
769
        "bitcoin.bip54_timewarp_start",
770
        setting<uint32_t>(&configured.bitcoin.bip54_timewarp_deployment.start),
34 ✔
771
        "The median time past to start bip54 timewarp signaling, 4294967295 for always active, defaults to {}."
772
    )
773
    (
102 ✔
774
        "bitcoin.bip54_timewarp_timeout",
775
        setting<uint32_t>(&configured.bitcoin.bip54_timewarp_deployment.timeout),
34 ✔
776
        "The median time past to time out bip54 timewarp signaling, defaults to {}."
777
    )
778
    (
102 ✔
779
        "bitcoin.bip54_timewarp_threshold",
780
        setting<size_t>(&configured.bitcoin.bip54_timewarp_deployment.threshold),
34 ✔
781
        "The signaling blocks per period to lock in bip54 timewarp, zero to disable, defaults to {}."
782
    )
783
    (
102 ✔
784
        "bitcoin.bip54_timewarp_activation_height",
785
        setting<size_t>(&configured.bitcoin.bip54_timewarp_deployment.activation_height),
34 ✔
786
        "The minimum bip54 timewarp activation height, defaults to {}."
787
    )
788
    (
102 ✔
789
        "bitcoin.bip54_timewarp_speedy_trial",
790
        setting<bool>(&configured.bitcoin.bip54_timewarp_deployment.speedy),
34 ✔
791
        "Check the bip54 timewarp threshold before timeout (speedy trial), defaults to {}."
792
    )
793
    (
102 ✔
794
        "bitcoin.bip54_timespan_start",
795
        setting<uint32_t>(&configured.bitcoin.bip54_timespan_deployment.start),
34 ✔
796
        "The median time past to start bip54 timespan signaling, 4294967295 for always active, defaults to {}."
797
    )
798
    (
102 ✔
799
        "bitcoin.bip54_timespan_timeout",
800
        setting<uint32_t>(&configured.bitcoin.bip54_timespan_deployment.timeout),
34 ✔
801
        "The median time past to time out bip54 timespan signaling, defaults to {}."
802
    )
803
    (
102 ✔
804
        "bitcoin.bip54_timespan_threshold",
805
        setting<size_t>(&configured.bitcoin.bip54_timespan_deployment.threshold),
34 ✔
806
        "The signaling blocks per period to lock in bip54 timespan, zero to disable, defaults to {}."
807
    )
808
    (
102 ✔
809
        "bitcoin.bip54_timespan_activation_height",
810
        setting<size_t>(&configured.bitcoin.bip54_timespan_deployment.activation_height),
34 ✔
811
        "The minimum bip54 timespan activation height, defaults to {}."
812
    )
813
    (
102 ✔
814
        "bitcoin.bip54_timespan_speedy_trial",
815
        setting<bool>(&configured.bitcoin.bip54_timespan_deployment.speedy),
34 ✔
816
        "Check the bip54 timespan threshold before timeout (speedy trial), defaults to {}."
817
    )
818
    (
102 ✔
819
        "bitcoin.bip54_sigops_start",
820
        setting<uint32_t>(&configured.bitcoin.bip54_sigops_deployment.start),
34 ✔
821
        "The median time past to start bip54 sigops signaling, 4294967295 for always active, defaults to {}."
822
    )
823
    (
102 ✔
824
        "bitcoin.bip54_sigops_timeout",
825
        setting<uint32_t>(&configured.bitcoin.bip54_sigops_deployment.timeout),
34 ✔
826
        "The median time past to time out bip54 sigops signaling, defaults to {}."
827
    )
828
    (
102 ✔
829
        "bitcoin.bip54_sigops_threshold",
830
        setting<size_t>(&configured.bitcoin.bip54_sigops_deployment.threshold),
34 ✔
831
        "The signaling blocks per period to lock in bip54 sigops, zero to disable, defaults to {}."
832
    )
833
    (
102 ✔
834
        "bitcoin.bip54_sigops_activation_height",
835
        setting<size_t>(&configured.bitcoin.bip54_sigops_deployment.activation_height),
34 ✔
836
        "The minimum bip54 sigops activation height, defaults to {}."
837
    )
838
    (
102 ✔
839
        "bitcoin.bip54_sigops_speedy_trial",
840
        setting<bool>(&configured.bitcoin.bip54_sigops_deployment.speedy),
34 ✔
841
        "Check the bip54 sigops threshold before timeout (speedy trial), defaults to {}."
842
    )
843
    (
102 ✔
844
        "bitcoin.bip54_txsize_start",
845
        setting<uint32_t>(&configured.bitcoin.bip54_txsize_deployment.start),
34 ✔
846
        "The median time past to start bip54 txsize signaling, 4294967295 for always active, defaults to {}."
847
    )
848
    (
102 ✔
849
        "bitcoin.bip54_txsize_timeout",
850
        setting<uint32_t>(&configured.bitcoin.bip54_txsize_deployment.timeout),
34 ✔
851
        "The median time past to time out bip54 txsize signaling, defaults to {}."
852
    )
853
    (
102 ✔
854
        "bitcoin.bip54_txsize_threshold",
855
        setting<size_t>(&configured.bitcoin.bip54_txsize_deployment.threshold),
34 ✔
856
        "The signaling blocks per period to lock in bip54 txsize, zero to disable, defaults to {}."
857
    )
858
    (
102 ✔
859
        "bitcoin.bip54_txsize_activation_height",
860
        setting<size_t>(&configured.bitcoin.bip54_txsize_deployment.activation_height),
34 ✔
861
        "The minimum bip54 txsize activation height, defaults to {}."
862
    )
863
    (
102 ✔
864
        "bitcoin.bip54_txsize_speedy_trial",
865
        setting<bool>(&configured.bitcoin.bip54_txsize_deployment.speedy),
34 ✔
866
        "Check the bip54 txsize threshold before timeout (speedy trial), defaults to {}."
867
    )
868
    (
102 ✔
869
        "bitcoin.bip54_coinbase_start",
870
        setting<uint32_t>(&configured.bitcoin.bip54_coinbase_deployment.start),
34 ✔
871
        "The median time past to start bip54 coinbase signaling, 4294967295 for always active, defaults to {}."
872
    )
873
    (
102 ✔
874
        "bitcoin.bip54_coinbase_timeout",
875
        setting<uint32_t>(&configured.bitcoin.bip54_coinbase_deployment.timeout),
34 ✔
876
        "The median time past to time out bip54 coinbase signaling, defaults to {}."
877
    )
878
    (
102 ✔
879
        "bitcoin.bip54_coinbase_threshold",
880
        setting<size_t>(&configured.bitcoin.bip54_coinbase_deployment.threshold),
34 ✔
881
        "The signaling blocks per period to lock in bip54 coinbase, zero to disable, defaults to {}."
882
    )
883
    (
102 ✔
884
        "bitcoin.bip54_coinbase_activation_height",
885
        setting<size_t>(&configured.bitcoin.bip54_coinbase_deployment.activation_height),
34 ✔
886
        "The minimum bip54 coinbase activation height, defaults to {}."
887
    )
888
    (
102 ✔
889
        "bitcoin.bip54_coinbase_speedy_trial",
890
        setting<bool>(&configured.bitcoin.bip54_coinbase_deployment.speedy),
34 ✔
891
        "Check the bip54 coinbase threshold before timeout (speedy trial), defaults to {}."
892
    )
893
    (
102 ✔
894
        settings::milestone,
895
        setting<chain::checkpoint>(&configured.bitcoin.milestone),
34 ✔
896
        "A block presumed to be valid but not required to be present, defaults to {}."
897
    )
898
    (
102 ✔
899
        "bitcoin.minimum_work",
900
        setting<config::hash256>(&configured.bitcoin.minimum_work),
34 ✔
901
        "The minimum work for any branch to be considered valid, defaults to {}."
902
    )
903

904
    /* [network] */
905
    (
102 ✔
906
        "network.threads",
907
        setting<uint32_t>(&configured.network.threads),
34 ✔
908
        "The minimum number of threads in the network threadpool, defaults to {} (hardware threads, at most 32)."
909
    )
910
    (
102 ✔
911
        "network.retry_timeout_seconds",
912
        setting<uint32_t>(&configured.network.retry_timeout_seconds),
34 ✔
913
        "The time delay for failed connection retry, defaults to {}."
914
    )
915
    (
102 ✔
916
        "network.connect_timeout_seconds",
917
        setting<uint32_t>(&configured.network.connect_timeout_seconds),
34 ✔
918
        "The time limit for connection establishment, defaults to {}."
919
    )
920
    (
102 ✔
921
        "network.rate_limit",
922
        setting<uint32_t>(&configured.network.rate_limit),
34 ✔
923
        "The per channel send rate limit in bytes per second, defaults to {} (unlimited)."
924
    )
925
    (
102 ✔
926
        "network.blacklist",
927
        setting<network::config::authorities>(&configured.network.blacklists),
34 ✔
928
        "IP address to disallow, allows all others, multiple allowed."
929
    )
930
    (
102 ✔
931
        "network.whitelist",
932
        setting<network::config::authorities>(&configured.network.whitelists),
34 ✔
933
        "IP address to allow, prohibits all others, multiple allowed."
934
    )
935

936
    /* [peer] */
937
    (
102 ✔
938
        "peer.address_upper",
939
        setting<uint16_t>(&configured.network.address_upper),
34 ✔
940
        "The upper bound for address selection divisor, defaults to {}."
941
    )
942
    (
102 ✔
943
        "peer.address_lower",
944
        setting<uint16_t>(&configured.network.address_lower),
34 ✔
945
        "The lower bound for address selection divisor, defaults to {}."
946
    )
947
    (
102 ✔
948
        "peer.protocol_maximum",
949
        setting<uint32_t>(&configured.network.protocol_maximum),
34 ✔
950
        "The maximum network protocol version, defaults to {}."
951
    )
952
    (
102 ✔
953
        "peer.protocol_minimum",
954
        setting<uint32_t>(&configured.network.protocol_minimum),
34 ✔
955
        "The minimum network protocol version, defaults to {}."
956
    )
957
    (
102 ✔
958
        "peer.invalid_services",
959
        setting<uint64_t>(&configured.network.invalid_services),
34 ✔
960
        "The advertised services that cause a peer to be dropped, defaults to {}."
961
    )
962
    (
102 ✔
963
        "peer.enable_address",
964
        setting<bool>(&configured.network.enable_address),
34 ✔
965
        "Enable address gossip, defaults to {}."
966
    )
967
    (
102 ✔
968
        "peer.enable_address_v2",
969
        setting<bool>(&configured.network.enable_address_v2),
34 ✔
970
        "Enable privacy network (Tor and I2P) address gossip, defaults to {}."
971
    )
972
    (
102 ✔
973
        "peer.enable_witness_tx",
974
        setting<bool>(&configured.network.enable_witness_tx),
34 ✔
975
        "Enable witness transaction identifier relay, defaults to {}."
976
    )
977
    (
102 ✔
978
        "peer.enable_compact",
979
        setting<bool>(&configured.network.enable_compact),
34 ✔
980
        "Enable compact block messages, defaults to {}."
981
    )
982
    (
102 ✔
983
        "peer.enable_alert",
984
        setting<bool>(&configured.network.enable_alert),
34 ✔
985
        "Enable alert messages, defaults to {}."
986
    )
987
    (
102 ✔
988
        "peer.enable_reject",
989
        setting<bool>(&configured.network.enable_reject),
34 ✔
990
        "Enable reject messages, defaults to {}."
991
    )
992
    (
102 ✔
993
        "peer.enable_not_found",
994
        setting<bool>(&configured.network.enable_not_found),
34 ✔
995
        "Enable not found messages, defaults to {}."
996
    )
997
    (
102 ✔
998
        "peer.enable_memory_pool",
999
        setting<bool>(&configured.network.enable_memory_pool),
34 ✔
1000
        "Enable memory pool messages, defaults to {}."
1001
    )
1002
    (
102 ✔
1003
        "peer.enable_relay",
1004
        setting<bool>(&configured.network.enable_relay),
34 ✔
1005
        "Enable transaction relay, defaults to {}."
1006
    )
1007
    (
102 ✔
1008
        "peer.validate_checksum",
1009
        setting<bool>(&configured.network.validate_checksum),
34 ✔
1010
        "Validate the checksum of network messages, defaults to {}."
1011
    )
1012
    (
102 ✔
1013
        "peer.gossip_ipv4",
1014
        setting<bool>(&configured.network.gossip_ipv4),
34 ✔
1015
        "Gossip internet protocol version 4 (IPv4) addresses, defaults to {}."
1016
    )
1017
    (
102 ✔
1018
        "peer.gossip_ipv6",
1019
        setting<bool>(&configured.network.gossip_ipv6),
34 ✔
1020
        "Gossip internet protocol version 6 (IPv6) addresses, defaults to {}."
1021
    )
1022
    (
102 ✔
1023
        "peer.gossip_tor",
1024
        setting<bool>(&configured.network.gossip_tor),
34 ✔
1025
        "Gossip tor (onion) addresses, defaults to {}."
1026
    )
1027
    (
102 ✔
1028
        "peer.gossip_i2p",
1029
        setting<bool>(&configured.network.gossip_i2p),
34 ✔
1030
        "Gossip i2p addresses, defaults to {}."
1031
    )
1032
    (
102 ✔
1033
        "peer.identifier",
1034
        setting<uint32_t>(&configured.network.identifier),
34 ✔
1035
        "The magic number for message headers, defaults to {}."
1036
    )
1037
    (
102 ✔
1038
        "peer.handshake_timeout_seconds",
1039
        setting<uint32_t>(&configured.network.handshake_timeout_seconds),
34 ✔
1040
        "The time limit to complete the connection handshake, defaults to {} (0 disables)."
1041
    )
1042
    (
102 ✔
1043
        "peer.channel_heartbeat_minutes",
1044
        setting<uint32_t>(&configured.network.channel_heartbeat_minutes),
34 ✔
1045
        "The time between ping messages, defaults to {} (0 disables)."
1046
    )
1047
    (
102 ✔
1048
        "peer.maximum_skew_minutes",
1049
        setting<uint32_t>(&configured.network.maximum_skew_minutes),
34 ✔
1050
        "The maximum allowable channel clock skew, defaults to {}."
1051
    )
1052
    (
102 ✔
1053
        "peer.user_agent",
1054
        setting<std::string>(&configured.network.user_agent),
34 ✔
1055
        "The node user agent string, defaults to {}."
1056
    )
1057

1058
    /* [outbound] */
1059
    (
102 ✔
1060
        "outbound.bind",
1061
        setting<network::config::authorities>(&configured.network.outbound.binds),
34 ✔
1062
        "IP address to bind outbound connections, multiple allowed, defaults to {}."
1063
    )
1064
    (
102 ✔
1065
        "outbound.connections",
1066
        setting<uint16_t>(&configured.network.outbound.connections),
34 ✔
1067
        "The target number of outgoing network connections, defaults to {}."
1068
    )
1069
    (
102 ✔
1070
        "outbound.current_connections",
1071
        setting<uint16_t>(&configured.node.current_connections),
34 ✔
1072
        "The target number of outgoing connections when current, defaults to {} (0 disables)."
1073
    )
1074
    (
102 ✔
1075
        "outbound.rate_limit",
1076
        setting<uint32_t>(&configured.network.outbound.rate_limit),
34 ✔
1077
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1078
    )
1079
    (
102 ✔
1080
        "outbound.connect_timeout_seconds",
1081
        setting<uint32_t>(&configured.network.outbound.connect_timeout_seconds),
34 ✔
1082
        "The time limit for connection establishment, defaults to {} (network controls)."
1083
    )
1084
    (
102 ✔
1085
        "outbound.inactivity_minutes",
1086
        setting<uint32_t>(&configured.network.outbound.inactivity_minutes),
34 ✔
1087
        "The inactivity time limit for any connection, defaults to {} (0 disables)."
1088
    )
1089
    (
102 ✔
1090
        "outbound.expiration_minutes",
1091
        setting<uint32_t>(&configured.network.outbound.expiration_minutes),
34 ✔
1092
        "The age limit for any connection, defaults to {} (0 disables)."
1093
    )
1094
    (
102 ✔
1095
        "outbound.minimum_buffer",
1096
        setting<uint32_t>(&configured.network.outbound.minimum_buffer),
34 ✔
1097
        "The minimum retained read buffer size, defaults to {}."
1098
    )
1099
    (
102 ✔
1100
        "outbound.maximum_backlog",
1101
        setting<uint32_t>(&configured.network.outbound.maximum_backlog),
34 ✔
1102
        "The maximum write backlog of a channel, defaults to {}."
1103
    )
1104
    (
102 ✔
1105
        "outbound.maximum_request",
1106
        setting<uint32_t>(&configured.network.outbound.maximum_request),
34 ✔
1107
        "The maximum allowed request size, defaults to {}."
1108
    )
1109
    (
102 ✔
1110
        "outbound.seed",
1111
        setting<network::config::endpoints>(&configured.network.outbound.seeds),
34 ✔
1112
        "A seed node for initializing the host pool, multiple allowed."
1113
    )
1114
    (
102 ✔
1115
        "outbound.connect_batch_size",
1116
        setting<uint16_t>(&configured.network.outbound.connect_batch_size),
34 ✔
1117
        "The number of concurrent attempts to establish one connection, defaults to {}."
1118
    )
1119
    (
102 ✔
1120
        "outbound.host_pool_capacity",
1121
        setting<uint32_t>(&configured.network.outbound.host_pool_capacity),
34 ✔
1122
        "The maximum number of peer hosts in the pool, defaults to {}."
1123
    )
1124
    (
102 ✔
1125
        "outbound.seeding_timeout_seconds",
1126
        setting<uint32_t>(&configured.network.outbound.seeding_timeout_seconds),
34 ✔
1127
        "The time limit for obtaining seed connections and addresses, defaults to {}."
1128
    )
1129
    (
102 ✔
1130
        "outbound.username",
1131
        setting<std::string>(&configured.network.outbound.username),
34 ✔
1132
        "The socks5 proxy username (optional)."
1133
    )
1134
    (
102 ✔
1135
        "outbound.password",
1136
        secret<std::string>(&configured.network.outbound.password),
34 ✔
1137
        "The socks5 proxy password (optional)."
1138
    )
1139
    (
102 ✔
1140
        "outbound.socks",
1141
        setting<config::endpoint>(&configured.network.outbound.socks),
34 ✔
1142
        "The socks5 proxy endpoint (port required)."
1143
    )
1144

1145
    /* [inbound] */
1146
    ////(
1147
    ////    "inbound.secure",
1148
    ////    setting<bool>(&configured.network.inbound.secure),
1149
    ////    "Require transport layer security, defaults to {} (not implemented)."
1150
    ////)
1151
    (
102 ✔
1152
        "inbound.bind",
1153
        setting<network::config::authorities>(&configured.network.inbound.binds),
34 ✔
1154
        "IP address to bind for listening, multiple allowed, defaults to {} (all IPv4)."
1155
    )
1156
    (
102 ✔
1157
        "inbound.connections",
1158
        setting<uint16_t>(&configured.network.inbound.connections),
34 ✔
1159
        "The target number of incoming network connections, defaults to {}."
1160
    )
1161
    (
102 ✔
1162
        "inbound.rate_limit",
1163
        setting<uint32_t>(&configured.network.inbound.rate_limit),
34 ✔
1164
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1165
    )
1166
    (
102 ✔
1167
        "inbound.connect_timeout_seconds",
1168
        setting<uint32_t>(&configured.network.inbound.connect_timeout_seconds),
34 ✔
1169
        "The time limit for connection establishment, defaults to {} (network controls)."
1170
    )
1171
    (
102 ✔
1172
        "inbound.inactivity_minutes",
1173
        setting<uint32_t>(&configured.network.inbound.inactivity_minutes),
34 ✔
1174
        "The inactivity time limit for any connection, defaults to {} (0 disables)."
1175
    )
1176
    (
102 ✔
1177
        "inbound.expiration_minutes",
1178
        setting<uint32_t>(&configured.network.inbound.expiration_minutes),
34 ✔
1179
        "The age limit for any connection, defaults to {} (0 disables)."
1180
    )
1181
    (
102 ✔
1182
        "inbound.minimum_buffer",
1183
        setting<uint32_t>(&configured.network.inbound.minimum_buffer),
34 ✔
1184
        "The minimum retained read buffer size, defaults to {}."
1185
    )
1186
    (
102 ✔
1187
        "inbound.maximum_backlog",
1188
        setting<uint32_t>(&configured.network.inbound.maximum_backlog),
34 ✔
1189
        "The maximum write backlog of a channel, defaults to {}."
1190
    )
1191
    (
102 ✔
1192
        "inbound.maximum_request",
1193
        setting<uint32_t>(&configured.network.inbound.maximum_request),
34 ✔
1194
        "The maximum allowed request size, defaults to {}."
1195
    )
1196
    (
102 ✔
1197
        "inbound.enable_loopback",
1198
        setting<bool>(&configured.network.inbound.enable_loopback),
34 ✔
1199
        "Allow connections from the node to itself, defaults to {}."
1200
    )
1201
    (
102 ✔
1202
        "inbound.self",
1203
        setting<network::config::addresses>(&configured.network.inbound.selfs),
34 ✔
1204
        "Address to advertise, multiple allowed."
1205
    )
1206
    (
102 ✔
1207
        "inbound.username",
1208
        setting<std::string>(&configured.network.inbound.username),
34 ✔
1209
        "The sam bridge username (optional)."
1210
    )
1211
    (
102 ✔
1212
        "inbound.password",
1213
        secret<std::string>(&configured.network.inbound.password),
34 ✔
1214
        "The sam bridge password (optional)."
1215
    )
1216
    (
102 ✔
1217
        "inbound.sam",
1218
        setting<config::endpoint>(&configured.network.inbound.bridge),
34 ✔
1219
        "The i2p sam bridge endpoint (port required)."
1220
    )
1221
    (
102 ✔
1222
        "inbound.key_path",
1223
        setting<config::path>(&configured.network.inbound.key_path),
34 ✔
1224
        "The i2p destination private key file path, created if not existing."
1225
    )
1226

1227
    /* [manual] */
1228
    ////(
1229
    ////    "manual.secure",
1230
    ////    setting<bool>(&configured.network.manual.secure),
1231
    ////    "Require transport layer security, defaults to {} (not implemented)."
1232
    ////)
1233
    (
102 ✔
1234
        "manual.bind",
1235
        setting<network::config::authorities>(&configured.network.manual.binds),
34 ✔
1236
        "IP address to bind manual connections, multiple allowed, defaults to {}."
1237
    )
1238
    ////(
1239
    ////    "manual.connections",
1240
    ////    setting<uint16_t>(&configured.network.manual.connections),
1241
    ////    "The target number of outgoing manual connections (not implemented)."
1242
    ////)
1243
    (
102 ✔
1244
        "manual.rate_limit",
1245
        setting<uint32_t>(&configured.network.manual.rate_limit),
34 ✔
1246
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1247
    )
1248
    (
102 ✔
1249
        "manual.connect_timeout_seconds",
1250
        setting<uint32_t>(&configured.network.manual.connect_timeout_seconds),
34 ✔
1251
        "The time limit for connection establishment, defaults to {} (network controls)."
1252
    )
1253
    (
102 ✔
1254
        "manual.inactivity_minutes",
1255
        setting<uint32_t>(&configured.network.manual.inactivity_minutes),
34 ✔
1256
        "The inactivity time limit for any connection, defaults to {} (0 disables, will attempt reconnect)."
1257
    )
1258
    (
102 ✔
1259
        "manual.expiration_minutes",
1260
        setting<uint32_t>(&configured.network.manual.expiration_minutes),
34 ✔
1261
        "The age limit for any connection, defaults to {} (0 disables, will attempt reconnect)."
1262
    )
1263
    (
102 ✔
1264
        "manual.minimum_buffer",
1265
        setting<uint32_t>(&configured.network.manual.minimum_buffer),
34 ✔
1266
        "The minimum retained read buffer size, defaults to {}."
1267
    )
1268
    (
102 ✔
1269
        "manual.maximum_backlog",
1270
        setting<uint32_t>(&configured.network.manual.maximum_backlog),
34 ✔
1271
        "The maximum write backlog of a channel, defaults to {}."
1272
    )
1273
    (
102 ✔
1274
        "manual.maximum_request",
1275
        setting<uint32_t>(&configured.network.manual.maximum_request),
34 ✔
1276
        "The maximum allowed request size, defaults to {}."
1277
    )
1278
    (
102 ✔
1279
        "manual.peer",
1280
        setting<network::config::endpoints>(&configured.network.manual.peers),
34 ✔
1281
        "A persistent peer node, multiple allowed."
1282
    )
1283
    (
102 ✔
1284
        "manual.request_mempool",
1285
        setting<bool>(&configured.network.manual.request_mempool),
34 ✔
1286
        "Request the memory pool of manual peers once relaying, defaults to {}."
1287
    )
1288
    (
102 ✔
1289
        "manual.username",
1290
        setting<std::string>(&configured.network.manual.username),
34 ✔
1291
        "The socks5 proxy username (optional)."
1292
    )
1293
    (
102 ✔
1294
        "manual.password",
1295
        secret<std::string>(&configured.network.manual.password),
34 ✔
1296
        "The socks5 proxy password (optional)."
1297
    )
1298
    (
102 ✔
1299
        "manual.socks",
1300
        setting<config::endpoint>(&configured.network.manual.socks),
34 ✔
1301
        "The socks5 proxy endpoint (port required)."
1302
    )
1303

1304
    /* [wallet] */
1305
    (
102 ✔
1306
        "wallet.p2kh_prefix",
1307
        setting<config::byte>(&configured.server.wallet.p2kh_prefix),
34 ✔
1308
        "The pay-to-public-key-hash address prefix, defaults to {} (use '111' for testnet)."
1309
    )
1310
    (
102 ✔
1311
        "wallet.p2sh_prefix",
1312
        setting<config::byte>(&configured.server.wallet.p2sh_prefix),
34 ✔
1313
        "The pay-to-script-hash address prefix, defaults to {} (use '196' for testnet)."
1314
    )
1315
    (
102 ✔
1316
        "wallet.wif_prefix",
1317
        setting<config::byte>(&configured.server.wallet.wif_prefix),
34 ✔
1318
        "The wallet import format prefix, defaults to {} (use '239' for testnet)."
1319
    )
1320
    (
102 ✔
1321
        "wallet.witness_prefix",
1322
        setting<std::string>(&configured.server.wallet.witness_prefix),
34 ✔
1323
        "The witness address prefix, defaults to {} (use 'tb' for testnet)."
1324
    )
1325
    (
102 ✔
1326
        "wallet.silent_prefix",
1327
        setting<std::string>(&configured.server.wallet.silent_prefix),
34 ✔
1328
        "The silent payment address prefix, defaults to {} (use 'tsp' for testnet)."
1329
    )
1330
    (
102 ✔
1331
        "wallet.hd_private_prefix",
1332
        setting<uint32_t>(&configured.server.wallet.hd_private_prefix),
34 ✔
1333
        "The extended private key prefix, defaults to {} (use '70615956' for testnet)."
1334
    )
1335
    (
102 ✔
1336
        "wallet.hd_public_prefix",
1337
        setting<uint32_t>(&configured.server.wallet.hd_public_prefix),
34 ✔
1338
        "The extended public key prefix, defaults to {} (use '70617039' for testnet)."
1339
    )
1340

1341
    /* [admin] */
1342
    (
102 ✔
1343
        "admin.bind",
1344
        setting<network::config::authorities>(&configured.server.admin.binds),
34 ✔
1345
        "IP address to bind, multiple allowed, defaults to {} (loopback)."
1346
    )
1347
    (
102 ✔
1348
        "admin.safe",
1349
        setting<network::config::authorities>(&configured.server.admin.safes),
34 ✔
1350
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
1351
    )
1352
    (
102 ✔
1353
        "admin.cert_auth",
1354
        setting<config::path>(&configured.server.admin.cert_auth),
34 ✔
1355
        "The trusted client certificate directory (*.PEM), enables client authentication."
1356
    )
1357
    (
102 ✔
1358
        "admin.cert_path",
1359
        setting<config::path>(&configured.server.admin.cert_path),
34 ✔
1360
        "The path to the server certificate file (.PEM), defaults to {}."
1361
    )
1362
    (
102 ✔
1363
        "admin.key_path",
1364
        setting<config::path>(&configured.server.admin.key_path),
34 ✔
1365
        "The path to the server private key file (.PEM), defaults to {}."
1366
    )
1367
    (
102 ✔
1368
        "admin.key_pass",
1369
        secret<std::string>(&configured.server.admin.key_pass),
34 ✔
1370
        "The password to decrypt the server private key file (.PEM), optional."
1371
    )
1372
    (
102 ✔
1373
        "admin.credential",
1374
        secret<network::config::credentials>(&configured.server.admin.credentials),
34 ✔
1375
        "The 'username:password[:method,...]' authorization (not secure), multiple allowed."
1376
    )
1377
    (
102 ✔
1378
        "admin.connections",
1379
        setting<uint16_t>(&configured.server.admin.connections),
34 ✔
1380
        "The required maximum number of connections, defaults to {}."
1381
    )
1382
    (
102 ✔
1383
        "admin.rate_limit",
1384
        setting<uint32_t>(&configured.server.admin.rate_limit),
34 ✔
1385
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1386
    )
1387
    (
102 ✔
1388
        "admin.connect_timeout_seconds",
1389
        setting<uint32_t>(&configured.server.admin.connect_timeout_seconds),
34 ✔
1390
        "The time limit for connection establishment, defaults to {} (network controls)."
1391
    )
1392
    (
102 ✔
1393
        "admin.inactivity_minutes",
1394
        setting<uint32_t>(&configured.server.admin.inactivity_minutes),
34 ✔
1395
        "The idle timeout (http keep-alive), defaults to {}."
1396
    )
1397
    (
102 ✔
1398
        "admin.expiration_minutes",
1399
        setting<uint32_t>(&configured.server.admin.expiration_minutes),
34 ✔
1400
        "The maximum connection duration, defaults to {}."
1401
    )
1402
    (
102 ✔
1403
        "admin.minimum_buffer",
1404
        setting<uint32_t>(&configured.server.admin.minimum_buffer),
34 ✔
1405
        "The minimum retained read buffer size, defaults to {}."
1406
    )
1407
    (
102 ✔
1408
        "admin.maximum_backlog",
1409
        setting<uint32_t>(&configured.server.admin.maximum_backlog),
34 ✔
1410
        "The maximum write backlog of a channel, defaults to {}."
1411
    )
1412
    (
102 ✔
1413
        "admin.maximum_buffer",
1414
        setting<uint32_t>(&configured.server.admin.maximum_buffer),
34 ✔
1415
        "The maximum json response buffer size, defaults to {}."
1416
    )
1417
    (
102 ✔
1418
        "admin.maximum_request",
1419
        setting<uint32_t>(&configured.server.admin.maximum_request),
34 ✔
1420
        "The maximum allowed request size, defaults to {}."
1421
    )
1422
    (
102 ✔
1423
        "admin.server",
1424
        setting<std::string>(&configured.server.admin.server),
34 ✔
1425
        "The server name (http header), defaults to {}."
1426
    )
1427
    (
102 ✔
1428
        "admin.host",
1429
        setting<network::config::endpoints>(&configured.server.admin.hosts),
34 ✔
1430
        "The host name (http verification), multiple allowed, defaults to {} (disabled)."
1431
    )
1432
    (
102 ✔
1433
        "admin.origin",
1434
        setting<network::config::endpoints>(&configured.server.admin.origins),
34 ✔
1435
        "The allowed origin (see CORS), multiple allowed, defaults to {} (disabled)."
1436
    )
1437
    (
102 ✔
1438
        "admin.allow_opaque_origin",
1439
        setting<bool>(&configured.server.admin.allow_opaque_origin),
34 ✔
1440
        "Allow requests from opaque origin (see CORS), defaults to {}."
1441
    )
1442
    (
102 ✔
1443
        "admin.compression",
1444
        setting<bool>(&configured.server.admin.compression),
34 ✔
1445
        "Compress response bodies as accepted by the request (gzip, deflate), defaults to {}."
1446
    )
1447
    (
102 ✔
1448
        "admin.default",
1449
        setting<std::string>(&configured.server.admin.default_),
34 ✔
1450
        "The path of the default source page, defaults to {}."
1451
    )
1452

1453
    /* [native] */
1454
    (
102 ✔
1455
        "native.bind",
1456
        setting<network::config::authorities>(&configured.server.native.binds),
34 ✔
1457
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
1458
    )
1459
    (
102 ✔
1460
        "native.safe",
1461
        setting<network::config::authorities>(&configured.server.native.safes),
34 ✔
1462
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
1463
    )
1464
    (
102 ✔
1465
        "native.cert_auth",
1466
        setting<config::path>(&configured.server.native.cert_auth),
34 ✔
1467
        "The trusted client certificate directory (*.PEM), enables client authentication."
1468
    )
1469
    (
102 ✔
1470
        "native.cert_path",
1471
        setting<config::path>(&configured.server.native.cert_path),
34 ✔
1472
        "The path to the server certificate file (.PEM), defaults to {}."
1473
    )
1474
    (
102 ✔
1475
        "native.key_path",
1476
        setting<config::path>(&configured.server.native.key_path),
34 ✔
1477
        "The path to the server private key file (.PEM), defaults to {}."
1478
    )
1479
    (
102 ✔
1480
        "native.key_pass",
1481
        secret<std::string>(&configured.server.native.key_pass),
34 ✔
1482
        "The password to decrypt the server private key file (.PEM), optional."
1483
    )
1484
    (
102 ✔
1485
        "native.credential",
1486
        secret<network::config::credentials>(&configured.server.native.credentials),
34 ✔
1487
        "The 'username:password[:method,...]' authorization (not secure), multiple allowed."
1488
    )
1489
    (
102 ✔
1490
        "native.connections",
1491
        setting<uint16_t>(&configured.server.native.connections),
34 ✔
1492
        "The required maximum number of connections, defaults to {}."
1493
    )
1494
    (
102 ✔
1495
        "native.rate_limit",
1496
        setting<uint32_t>(&configured.server.native.rate_limit),
34 ✔
1497
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1498
    )
1499
    (
102 ✔
1500
        "native.connect_timeout_seconds",
1501
        setting<uint32_t>(&configured.server.native.connect_timeout_seconds),
34 ✔
1502
        "The time limit for connection establishment, defaults to {} (network controls)."
1503
    )
1504
    (
102 ✔
1505
        "native.inactivity_minutes",
1506
        setting<uint32_t>(&configured.server.native.inactivity_minutes),
34 ✔
1507
        "The idle timeout (http keep-alive), defaults to {}."
1508
    )
1509
    (
102 ✔
1510
        "native.expiration_minutes",
1511
        setting<uint32_t>(&configured.server.native.expiration_minutes),
34 ✔
1512
        "The maximum connection duration, defaults to {}."
1513
    )
1514
    (
102 ✔
1515
        "native.minimum_buffer",
1516
        setting<uint32_t>(&configured.server.native.minimum_buffer),
34 ✔
1517
        "The minimum retained read buffer size, defaults to {}."
1518
    )
1519
    (
102 ✔
1520
        "native.maximum_backlog",
1521
        setting<uint32_t>(&configured.server.native.maximum_backlog),
34 ✔
1522
        "The maximum write backlog of a channel, defaults to {}."
1523
    )
1524
    (
102 ✔
1525
        "native.maximum_buffer",
1526
        setting<uint32_t>(&configured.server.native.maximum_buffer),
34 ✔
1527
        "The maximum json response buffer size, defaults to {}."
1528
    )
1529
    (
102 ✔
1530
        "native.maximum_request",
1531
        setting<uint32_t>(&configured.server.native.maximum_request),
34 ✔
1532
        "The maximum allowed request size, defaults to {}."
1533
    )
1534
    (
102 ✔
1535
        "native.server",
1536
        setting<std::string>(&configured.server.native.server),
34 ✔
1537
        "The server name (http header), defaults to {}."
1538
    )
1539
    (
102 ✔
1540
        "native.host",
1541
        setting<network::config::endpoints>(&configured.server.native.hosts),
34 ✔
1542
        "The host name (http verification), multiple allowed, defaults to {} (disabled)."
1543
    )
1544
    (
102 ✔
1545
        "native.origin",
1546
        setting<network::config::endpoints>(&configured.server.native.origins),
34 ✔
1547
        "The allowed origin (see CORS), multiple allowed, defaults to {} (disabled)."
1548
    )
1549
    (
102 ✔
1550
        "native.allow_opaque_origin",
1551
        setting<bool>(&configured.server.native.allow_opaque_origin),
34 ✔
1552
        "Allow requests from opaque origin (see CORS), defaults to {}."
1553
    )
1554
    (
102 ✔
1555
        "native.compression",
1556
        setting<bool>(&configured.server.native.compression),
34 ✔
1557
        "Compress response bodies as accepted by the request (gzip, deflate), defaults to {}."
1558
    )
1559
    (
102 ✔
1560
        "native.default",
1561
        setting<std::string>(&configured.server.native.default_),
34 ✔
1562
        "The path of the default source page, defaults to {}."
1563
    )
1564
    (
102 ✔
1565
        "native.websocket",
1566
        setting<bool>(&configured.server.native.websocket),
34 ✔
1567
        "Enable websocket interface, defaults to {}."
1568
    )
1569

1570
    /* [bitcoind] */
1571
    (
102 ✔
1572
        "bitcoind.bind",
1573
        setting<network::config::authorities>(&configured.server.bitcoind.binds),
34 ✔
1574
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
1575
    )
1576
    (
102 ✔
1577
        "bitcoind.safe",
1578
        setting<network::config::authorities>(&configured.server.bitcoind.safes),
34 ✔
1579
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
1580
    )
1581
    (
102 ✔
1582
        "bitcoind.cert_auth",
1583
        setting<config::path>(&configured.server.bitcoind.cert_auth),
34 ✔
1584
        "The trusted client certificate directory (*.PEM), enables client authentication."
1585
    )
1586
    (
102 ✔
1587
        "bitcoind.cert_path",
1588
        setting<config::path>(&configured.server.bitcoind.cert_path),
34 ✔
1589
        "The path to the server certificate file (.PEM), defaults to {}."
1590
    )
1591
    (
102 ✔
1592
        "bitcoind.key_path",
1593
        setting<config::path>(&configured.server.bitcoind.key_path),
34 ✔
1594
        "The path to the server private key file (.PEM), defaults to {}."
1595
    )
1596
    (
102 ✔
1597
        "bitcoind.key_pass",
1598
        secret<std::string>(&configured.server.bitcoind.key_pass),
34 ✔
1599
        "The password to decrypt the server private key file (.PEM), optional."
1600
    )
1601
    (
102 ✔
1602
        "bitcoind.credential",
1603
        secret<network::config::credentials>(&configured.server.bitcoind.credentials),
34 ✔
1604
        "The 'username:password[:method,...]' authorization (not secure), multiple allowed."
1605
    )
1606
    (
102 ✔
1607
        "bitcoind.connections",
1608
        setting<uint16_t>(&configured.server.bitcoind.connections),
34 ✔
1609
        "The required maximum number of connections, defaults to {}."
1610
    )
1611
    (
102 ✔
1612
        "bitcoind.rate_limit",
1613
        setting<uint32_t>(&configured.server.bitcoind.rate_limit),
34 ✔
1614
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1615
    )
1616
    (
102 ✔
1617
        "bitcoind.connect_timeout_seconds",
1618
        setting<uint32_t>(&configured.server.bitcoind.connect_timeout_seconds),
34 ✔
1619
        "The time limit for connection establishment, defaults to {} (network controls)."
1620
    )
1621
    (
102 ✔
1622
        "bitcoind.inactivity_minutes",
1623
        setting<uint32_t>(&configured.server.bitcoind.inactivity_minutes),
34 ✔
1624
        "The idle timeout (http keep-alive), defaults to {}."
1625
    )
1626
    (
102 ✔
1627
        "bitcoind.expiration_minutes",
1628
        setting<uint32_t>(&configured.server.bitcoind.expiration_minutes),
34 ✔
1629
        "The maximum connection duration, defaults to {}."
1630
    )
1631
    (
102 ✔
1632
        "bitcoind.minimum_buffer",
1633
        setting<uint32_t>(&configured.server.bitcoind.minimum_buffer),
34 ✔
1634
        "The minimum retained read buffer size, defaults to {}."
1635
    )
1636
    (
102 ✔
1637
        "bitcoind.maximum_backlog",
1638
        setting<uint32_t>(&configured.server.bitcoind.maximum_backlog),
34 ✔
1639
        "The maximum write backlog of a channel, defaults to {}."
1640
    )
1641
    (
102 ✔
1642
        "bitcoind.maximum_buffer",
1643
        setting<uint32_t>(&configured.server.bitcoind.maximum_buffer),
34 ✔
1644
        "The maximum json response buffer size, defaults to {}."
1645
    )
1646
    (
102 ✔
1647
        "bitcoind.maximum_request",
1648
        setting<uint32_t>(&configured.server.bitcoind.maximum_request),
34 ✔
1649
        "The maximum allowed request size, defaults to {}."
1650
    )
1651
    (
102 ✔
1652
        "bitcoind.server",
1653
        setting<std::string>(&configured.server.bitcoind.server),
34 ✔
1654
        "The server name (http header), defaults to {}."
1655
    )
1656
    (
102 ✔
1657
        "bitcoind.protocol_minimum",
1658
        setting<uint32_t>(&configured.server.bitcoind.protocol_minimum),
34 ✔
1659
        "The minimum interface version (bitcoind version encoding), defaults to {}."
1660
    )
1661
    (
102 ✔
1662
        "bitcoind.protocol_maximum",
1663
        setting<uint32_t>(&configured.server.bitcoind.protocol_maximum),
34 ✔
1664
        "The maximum interface version (bitcoind version encoding), defaults to {}."
1665
    )
1666
    (
102 ✔
1667
        "bitcoind.host",
1668
        setting<network::config::endpoints>(&configured.server.bitcoind.hosts),
34 ✔
1669
        "The host name (http verification), multiple allowed, defaults to {} (disabled)."
1670
    )
1671
    (
102 ✔
1672
        "bitcoind.origin",
1673
        setting<network::config::endpoints>(&configured.server.bitcoind.origins),
34 ✔
1674
        "The allowed origin (see CORS), multiple allowed, defaults to {} (disabled)."
1675
    )
1676
    (
102 ✔
1677
        "bitcoind.allow_opaque_origin",
1678
        setting<bool>(&configured.server.bitcoind.allow_opaque_origin),
34 ✔
1679
        "Allow requests from opaque origin (see CORS), defaults to {}."
1680
    )
1681
    (
102 ✔
1682
        "bitcoind.compression",
1683
        setting<bool>(&configured.server.bitcoind.compression),
34 ✔
1684
        "Compress response bodies as accepted by the request (gzip, deflate), defaults to {}."
1685
    )
1686

1687
    /* [zmq] */
1688
    (
102 ✔
1689
        "zmq.bind",
1690
        setting<network::config::authorities>(&configured.server.zmq.binds),
34 ✔
1691
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
1692
    )
1693
    (
102 ✔
1694
        "zmq.safe",
1695
        setting<network::config::authorities>(&configured.server.zmq.safes),
34 ✔
1696
        "IP address to secure (CurveZMQ) bind, multiple allowed, defaults to {} (disabled)."
1697
    )
1698
    (
102 ✔
1699
        "zmq.cert",
1700
        setting<std::vector<config::base85>>(&configured.server.zmq.certs),
34 ✔
1701
        "The Z85 encoded public key of an authorized client, multiple allowed, defaults to {} (all)."
1702
    )
1703
    (
102 ✔
1704
        "zmq.connections",
1705
        setting<uint16_t>(&configured.server.zmq.connections),
34 ✔
1706
        "The required maximum number of connections, defaults to {}."
1707
    )
1708
    (
102 ✔
1709
        "zmq.rate_limit",
1710
        setting<uint32_t>(&configured.server.zmq.rate_limit),
34 ✔
1711
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1712
    )
1713
    (
102 ✔
1714
        "zmq.connect_timeout_seconds",
1715
        setting<uint32_t>(&configured.server.zmq.connect_timeout_seconds),
34 ✔
1716
        "The time limit for connection establishment, defaults to {} (network controls)."
1717
    )
1718
    (
102 ✔
1719
        "zmq.minimum_buffer",
1720
        setting<uint32_t>(&configured.server.zmq.minimum_buffer),
34 ✔
1721
        "The minimum retained read buffer size, defaults to {}."
1722
    )
1723
    (
102 ✔
1724
        "zmq.maximum_backlog",
1725
        setting<uint32_t>(&configured.server.zmq.maximum_backlog),
34 ✔
1726
        "The maximum write backlog of a channel, defaults to {}."
1727
    )
1728
    (
102 ✔
1729
        "zmq.maximum_request",
1730
        setting<uint32_t>(&configured.server.zmq.maximum_request),
34 ✔
1731
        "The maximum allowed request size, defaults to {}."
1732
    )
1733
    (
102 ✔
1734
        "zmq.maximum_subscriptions",
1735
        setting<uint32_t>(&configured.server.zmq.maximum_subscriptions),
34 ✔
1736
        "The maximum topic subscriptions per connection, defaults to {}."
1737
    )
1738
    (
102 ✔
1739
        "zmq.key",
1740
        secret<config::base85>(&configured.server.zmq.key),
34 ✔
1741
        "The Z85 encoded CurveZMQ server secret key, defaults to none (unencrypted)."
1742
    )
1743

1744
    /* [btcd] */
1745
    (
102 ✔
1746
        "btcd.bind",
1747
        setting<network::config::authorities>(&configured.server.btcd.binds),
34 ✔
1748
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
1749
    )
1750
    (
102 ✔
1751
        "btcd.safe",
1752
        setting<network::config::authorities>(&configured.server.btcd.safes),
34 ✔
1753
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
1754
    )
1755
    (
102 ✔
1756
        "btcd.cert_auth",
1757
        setting<config::path>(&configured.server.btcd.cert_auth),
34 ✔
1758
        "The trusted client certificate directory (*.PEM), enables client authentication."
1759
    )
1760
    (
102 ✔
1761
        "btcd.cert_path",
1762
        setting<config::path>(&configured.server.btcd.cert_path),
34 ✔
1763
        "The path to the server certificate file (.PEM), defaults to {}."
1764
    )
1765
    (
102 ✔
1766
        "btcd.key_path",
1767
        setting<config::path>(&configured.server.btcd.key_path),
34 ✔
1768
        "The path to the server private key file (.PEM), defaults to {}."
1769
    )
1770
    (
102 ✔
1771
        "btcd.key_pass",
1772
        secret<std::string>(&configured.server.btcd.key_pass),
34 ✔
1773
        "The password to decrypt the server private key file (.PEM), optional."
1774
    )
1775
    (
102 ✔
1776
        "btcd.credential",
1777
        secret<network::config::credentials>(&configured.server.btcd.credentials),
34 ✔
1778
        "The 'username:password[:method,...]' authorization (not secure), multiple allowed."
1779
    )
1780
    (
102 ✔
1781
        "btcd.connections",
1782
        setting<uint16_t>(&configured.server.btcd.connections),
34 ✔
1783
        "The required maximum number of connections, defaults to {}."
1784
    )
1785
    (
102 ✔
1786
        "btcd.rate_limit",
1787
        setting<uint32_t>(&configured.server.btcd.rate_limit),
34 ✔
1788
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1789
    )
1790
    (
102 ✔
1791
        "btcd.connect_timeout_seconds",
1792
        setting<uint32_t>(&configured.server.btcd.connect_timeout_seconds),
34 ✔
1793
        "The time limit for connection establishment, defaults to {} (network controls)."
1794
    )
1795
    (
102 ✔
1796
        "btcd.inactivity_minutes",
1797
        setting<uint32_t>(&configured.server.btcd.inactivity_minutes),
34 ✔
1798
        "The idle timeout (http/ws keep-alive), defaults to {}."
1799
    )
1800
    (
102 ✔
1801
        "btcd.expiration_minutes",
1802
        setting<uint32_t>(&configured.server.btcd.expiration_minutes),
34 ✔
1803
        "The maximum connection duration, defaults to {}."
1804
    )
1805
    (
102 ✔
1806
        "btcd.minimum_buffer",
1807
        setting<uint32_t>(&configured.server.btcd.minimum_buffer),
34 ✔
1808
        "The minimum retained read buffer size, defaults to {}."
1809
    )
1810
    (
102 ✔
1811
        "btcd.maximum_backlog",
1812
        setting<uint32_t>(&configured.server.btcd.maximum_backlog),
34 ✔
1813
        "The maximum write backlog of a channel, defaults to {}."
1814
    )
1815
    (
102 ✔
1816
        "btcd.maximum_buffer",
1817
        setting<uint32_t>(&configured.server.btcd.maximum_buffer),
34 ✔
1818
        "The maximum json response buffer size, defaults to {}."
1819
    )
1820
    (
102 ✔
1821
        "btcd.maximum_request",
1822
        setting<uint32_t>(&configured.server.btcd.maximum_request),
34 ✔
1823
        "The maximum allowed request size, defaults to {}."
1824
    )
1825
    (
102 ✔
1826
        "btcd.server",
1827
        setting<std::string>(&configured.server.btcd.server),
34 ✔
1828
        "The server name (http header), defaults to {}."
1829
    )
1830
    (
102 ✔
1831
        "btcd.maximum_filters",
1832
        setting<uint32_t>(&configured.server.btcd.maximum_filters),
34 ✔
1833
        "The maximum number of loadtxfilter watches, defaults to {}."
1834
    )
1835
    (
102 ✔
1836
        "btcd.maximum_history",
1837
        setting<uint32_t>(&configured.server.btcd.maximum_history),
34 ✔
1838
        "The maximum number of address history entries, defaults to {}."
1839
    )
1840
    (
102 ✔
1841
        "btcd.host",
1842
        setting<network::config::endpoints>(&configured.server.btcd.hosts),
34 ✔
1843
        "The host name (http verification), multiple allowed, defaults to {} (disabled)."
1844
    )
1845
    (
102 ✔
1846
        "btcd.origin",
1847
        setting<network::config::endpoints>(&configured.server.btcd.origins),
34 ✔
1848
        "The allowed origin (see CORS), multiple allowed, defaults to {} (disabled)."
1849
    )
1850
    (
102 ✔
1851
        "btcd.allow_opaque_origin",
1852
        setting<bool>(&configured.server.btcd.allow_opaque_origin),
34 ✔
1853
        "Allow requests from opaque origin (see CORS), defaults to {}."
1854
    )
1855
    (
102 ✔
1856
        "btcd.compression",
1857
        setting<bool>(&configured.server.btcd.compression),
34 ✔
1858
        "Compress response bodies as accepted by the request (gzip, deflate), defaults to {}."
1859
    )
1860

1861
    /* [electrum] */
1862
    (
102 ✔
1863
        "electrum.bind",
1864
        setting<network::config::authorities>(&configured.server.electrum.binds),
34 ✔
1865
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
1866
    )
1867
    (
102 ✔
1868
        "electrum.safe",
1869
        setting<network::config::authorities>(&configured.server.electrum.safes),
34 ✔
1870
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
1871
    )
1872
    (
102 ✔
1873
        "electrum.cert_auth",
1874
        setting<config::path>(&configured.server.electrum.cert_auth),
34 ✔
1875
        "The trusted client certificate directory (*.PEM), enables client authentication."
1876
    )
1877
    (
102 ✔
1878
        "electrum.cert_path",
1879
        setting<config::path>(&configured.server.electrum.cert_path),
34 ✔
1880
        "The path to the server certificate file (.PEM), defaults to {}."
1881
    )
1882
    (
102 ✔
1883
        "electrum.key_path",
1884
        setting<config::path>(&configured.server.electrum.key_path),
34 ✔
1885
        "The path to the server private key file (.PEM), defaults to {}."
1886
    )
1887
    (
102 ✔
1888
        "electrum.key_pass",
1889
        secret<std::string>(&configured.server.electrum.key_pass),
34 ✔
1890
        "The password to decrypt the server private key file (.PEM), optional."
1891
    )
1892
    (
102 ✔
1893
        "electrum.credential",
1894
        secret<network::config::credentials>(&configured.server.electrum.credentials),
34 ✔
1895
        "The 'username:password[:method,...]' authorization (not secure), multiple allowed."
1896
    )
1897
    (
102 ✔
1898
        "electrum.compression",
1899
        setting<bool>(&configured.server.electrum.compression),
34 ✔
1900
        "Compress http response bodies as accepted by the request (gzip, deflate), defaults to {}."
1901
    )
1902
    (
102 ✔
1903
        "electrum.connections",
1904
        setting<uint16_t>(&configured.server.electrum.connections),
34 ✔
1905
        "The required maximum number of connections, defaults to {}."
1906
    )
1907
    (
102 ✔
1908
        "electrum.rate_limit",
1909
        setting<uint32_t>(&configured.server.electrum.rate_limit),
34 ✔
1910
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1911
    )
1912
    (
102 ✔
1913
        "electrum.connect_timeout_seconds",
1914
        setting<uint32_t>(&configured.server.electrum.connect_timeout_seconds),
34 ✔
1915
        "The time limit for connection establishment, defaults to {} (network controls)."
1916
    )
1917
    (
102 ✔
1918
        "electrum.inactivity_minutes",
1919
        setting<uint32_t>(&configured.server.electrum.inactivity_minutes),
34 ✔
1920
        "The idle timeout (http keep-alive), defaults to {}."
1921
    )
1922
    (
102 ✔
1923
        "electrum.expiration_minutes",
1924
        setting<uint32_t>(&configured.server.electrum.expiration_minutes),
34 ✔
1925
        "The maximum connection duration, defaults to {}."
1926
    )
1927
    (
102 ✔
1928
        "electrum.minimum_buffer",
1929
        setting<uint32_t>(&configured.server.electrum.minimum_buffer),
34 ✔
1930
        "The minimum retained read buffer size, defaults to {}."
1931
    )
1932
    (
102 ✔
1933
        "electrum.maximum_backlog",
1934
        setting<uint32_t>(&configured.server.electrum.maximum_backlog),
34 ✔
1935
        "The maximum write backlog of a channel, defaults to {}."
1936
    )
1937
    (
102 ✔
1938
        "electrum.maximum_buffer",
1939
        setting<uint32_t>(&configured.server.electrum.maximum_buffer),
34 ✔
1940
        "The maximum json response buffer size, defaults to {}."
1941
    )
1942
    (
102 ✔
1943
        "electrum.maximum_request",
1944
        setting<uint32_t>(&configured.server.electrum.maximum_request),
34 ✔
1945
        "The maximum allowed request size, defaults to {}."
1946
    )
1947
    (
102 ✔
1948
        "electrum.maximum_headers",
1949
        setting<uint32_t>(&configured.server.electrum.maximum_headers),
34 ✔
1950
        "The maximum allowed headers returned per request, defaults to {}."
1951
    )
1952
    (
102 ✔
1953
        "electrum.maximum_history",
1954
        setting<uint32_t>(&configured.server.electrum.maximum_history),
34 ✔
1955
        "The maximum number of address history entries upon one subscription, defaults to {}."
1956
    )
1957
    (
102 ✔
1958
        "electrum.maximum_subscriptions",
1959
        setting<uint32_t>(&configured.server.electrum.maximum_subscriptions),
34 ✔
1960
        "The maximum allowed address subscriptions per channel, defaults to {}."
1961
    )
1962
    (
102 ✔
1963
        "electrum.ping_interval_seconds",
1964
        setting<uint32_t>(&configured.server.electrum.ping_interval_seconds),
34 ✔
1965
        "The seconds between unrequested pings, defaults to {} (disabled)."
1966
    )
1967
    (
102 ✔
1968
        "electrum.ping_size",
1969
        setting<uint32_t>(&configured.server.electrum.ping_size),
34 ✔
1970
        "The hex characters of unrequested ping data, defaults to {}."
1971
    )
1972
    (
102 ✔
1973
        "electrum.protocol_minimum",
1974
        setting<version>(&configured.server.electrum.protocol_minimum),
34 ✔
1975
        "Minimum protocol version, defaults to {}."
1976
    )
1977
    (
102 ✔
1978
        "electrum.protocol_maximum",
1979
        setting<version>(&configured.server.electrum.protocol_maximum),
34 ✔
1980
        "Maximum protocol version, defaults to {}."
1981
    )
1982
    (
102 ✔
1983
        "electrum.server_name",
1984
        setting<std::string>(&configured.server.electrum.server_name),
34 ✔
1985
        "String returned by server.version, defaults to {}."
1986
    )
1987
    (
102 ✔
1988
        "electrum.donation_address",
1989
        setting<std::string>(&configured.server.electrum.donation_address),
34 ✔
1990
        "String returned by server.donation_address, defaults to {}."
1991
    )
1992
    (
102 ✔
1993
        "electrum.banner_message",
1994
        setting<std::string>(&configured.server.electrum.banner_message),
34 ✔
1995
        "String returned by server.banner, defaults to {}."
1996
    )
1997
    (
102 ✔
1998
        "electrum.self_bind",
1999
        setting<network::config::endpoints>(&configured.server.electrum.self_binds),
34 ✔
2000
        "Advertised host:port at which this server can be reached (defaults to {})."
2001
    )
2002
    (
102 ✔
2003
        "electrum.self_safe",
2004
        setting<network::config::endpoints>(&configured.server.electrum.self_safes),
34 ✔
2005
        "Advertised secure host:port at which this server can be reached (defaults to {})."
2006
    )
2007
    (
102 ✔
2008
        "electrum.more_bind",
2009
        setting<network::config::endpoints>(&configured.server.electrum.more_binds),
34 ✔
2010
        "Advertised host:port at which another server can be reached (defaults to {})."
2011
    )
2012
    (
102 ✔
2013
        "electrum.more_safe",
2014
        setting<network::config::endpoints>(&configured.server.electrum.more_safes),
34 ✔
2015
        "Advertised secure host:port at which another server can be reached (defaults to {})."
2016
    )
2017

2018
    /* [sparrow] */
2019
    (
102 ✔
2020
        "sparrow.bind",
2021
        setting<network::config::authorities>(&configured.server.sparrow.binds),
34 ✔
2022
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
2023
    )
2024
    (
102 ✔
2025
        "sparrow.safe",
2026
        setting<network::config::authorities>(&configured.server.sparrow.safes),
34 ✔
2027
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
2028
    )
2029
    (
102 ✔
2030
        "sparrow.cert_auth",
2031
        setting<config::path>(&configured.server.sparrow.cert_auth),
34 ✔
2032
        "The trusted client certificate directory (*.PEM), enables client authentication."
2033
    )
2034
    (
102 ✔
2035
        "sparrow.cert_path",
2036
        setting<config::path>(&configured.server.sparrow.cert_path),
34 ✔
2037
        "The path to the server certificate file (.PEM), defaults to {}."
2038
    )
2039
    (
102 ✔
2040
        "sparrow.key_path",
2041
        setting<config::path>(&configured.server.sparrow.key_path),
34 ✔
2042
        "The path to the server private key file (.PEM), defaults to {}."
2043
    )
2044
    (
102 ✔
2045
        "sparrow.key_pass",
2046
        secret<std::string>(&configured.server.sparrow.key_pass),
34 ✔
2047
        "The password to decrypt the server private key file (.PEM), optional."
2048
    )
2049
    (
102 ✔
2050
        "sparrow.credential",
2051
        secret<network::config::credentials>(&configured.server.sparrow.credentials),
34 ✔
2052
        "The 'username:password[:method,...]' authorization (not secure), multiple allowed."
2053
    )
2054
    (
102 ✔
2055
        "sparrow.compression",
2056
        setting<bool>(&configured.server.sparrow.compression),
34 ✔
2057
        "Compress http response bodies as accepted by the request (gzip, deflate), defaults to {}."
2058
    )
2059
    (
102 ✔
2060
        "sparrow.connections",
2061
        setting<uint16_t>(&configured.server.sparrow.connections),
34 ✔
2062
        "The required maximum number of connections, defaults to {}."
2063
    )
2064
    (
102 ✔
2065
        "sparrow.rate_limit",
2066
        setting<uint32_t>(&configured.server.sparrow.rate_limit),
34 ✔
2067
        "The send rate limit in bytes per second, defaults to {} (network controls)."
2068
    )
2069
    (
102 ✔
2070
        "sparrow.connect_timeout_seconds",
2071
        setting<uint32_t>(&configured.server.sparrow.connect_timeout_seconds),
34 ✔
2072
        "The time limit for connection establishment, defaults to {} (network controls)."
2073
    )
2074
    (
102 ✔
2075
        "sparrow.inactivity_minutes",
2076
        setting<uint32_t>(&configured.server.sparrow.inactivity_minutes),
34 ✔
2077
        "The idle timeout (http keep-alive), defaults to {}."
2078
    )
2079
    (
102 ✔
2080
        "sparrow.expiration_minutes",
2081
        setting<uint32_t>(&configured.server.sparrow.expiration_minutes),
34 ✔
2082
        "The maximum connection duration, defaults to {}."
2083
    )
2084
    (
102 ✔
2085
        "sparrow.minimum_buffer",
2086
        setting<uint32_t>(&configured.server.sparrow.minimum_buffer),
34 ✔
2087
        "The minimum retained read buffer size, defaults to {}."
2088
    )
2089
    (
102 ✔
2090
        "sparrow.maximum_backlog",
2091
        setting<uint32_t>(&configured.server.sparrow.maximum_backlog),
34 ✔
2092
        "The maximum write backlog of a channel, defaults to {}."
2093
    )
2094
    (
102 ✔
2095
        "sparrow.maximum_buffer",
2096
        setting<uint32_t>(&configured.server.sparrow.maximum_buffer),
34 ✔
2097
        "The maximum json response buffer size, defaults to {}."
2098
    )
2099
    (
102 ✔
2100
        "sparrow.maximum_request",
2101
        setting<uint32_t>(&configured.server.sparrow.maximum_request),
34 ✔
2102
        "The maximum allowed request size, defaults to {}."
2103
    )
2104
    (
102 ✔
2105
        "sparrow.maximum_headers",
2106
        setting<uint32_t>(&configured.server.sparrow.maximum_headers),
34 ✔
2107
        "The maximum allowed headers returned per request, defaults to {}."
2108
    )
2109
    (
102 ✔
2110
        "sparrow.maximum_history",
2111
        setting<uint32_t>(&configured.server.sparrow.maximum_history),
34 ✔
2112
        "The maximum number of address history entries upon one subscription, defaults to {}."
2113
    )
2114
    (
102 ✔
2115
        "sparrow.maximum_subscriptions",
2116
        setting<uint32_t>(&configured.server.sparrow.maximum_subscriptions),
34 ✔
2117
        "The maximum allowed address subscriptions per channel, defaults to {}."
2118
    )
2119
    (
102 ✔
2120
        "sparrow.ping_interval_seconds",
2121
        setting<uint32_t>(&configured.server.sparrow.ping_interval_seconds),
34 ✔
2122
        "The seconds between unrequested pings, defaults to {} (disabled)."
2123
    )
2124
    (
102 ✔
2125
        "sparrow.ping_size",
2126
        setting<uint32_t>(&configured.server.sparrow.ping_size),
34 ✔
2127
        "The hex characters of unrequested ping data, defaults to {}."
2128
    )
2129
    (
102 ✔
2130
        "sparrow.protocol_minimum",
2131
        setting<version>(&configured.server.sparrow.protocol_minimum),
34 ✔
2132
        "Minimum protocol version, defaults to {}."
2133
    )
2134
    (
102 ✔
2135
        "sparrow.protocol_maximum",
2136
        setting<version>(&configured.server.sparrow.protocol_maximum),
34 ✔
2137
        "Maximum protocol version, defaults to {}."
2138
    )
2139
    (
102 ✔
2140
        "sparrow.server_name",
2141
        setting<std::string>(&configured.server.sparrow.server_name),
34 ✔
2142
        "String returned by server.version, defaults to {}."
2143
    )
2144
    (
102 ✔
2145
        "sparrow.donation_address",
2146
        setting<std::string>(&configured.server.sparrow.donation_address),
34 ✔
2147
        "String returned by server.donation_address, defaults to {}."
2148
    )
2149
    (
102 ✔
2150
        "sparrow.banner_message",
2151
        setting<std::string>(&configured.server.sparrow.banner_message),
34 ✔
2152
        "String returned by server.banner, defaults to {}."
2153
    )
2154
    (
102 ✔
2155
        "sparrow.self_bind",
2156
        setting<network::config::endpoints>(&configured.server.sparrow.self_binds),
34 ✔
2157
        "Advertised host:port at which this server can be reached (defaults to {})."
2158
    )
2159
    (
102 ✔
2160
        "sparrow.self_safe",
2161
        setting<network::config::endpoints>(&configured.server.sparrow.self_safes),
34 ✔
2162
        "Advertised secure host:port at which this server can be reached (defaults to {})."
2163
    )
2164
    (
102 ✔
2165
        "sparrow.more_bind",
2166
        setting<network::config::endpoints>(&configured.server.sparrow.more_binds),
34 ✔
2167
        "Advertised host:port at which another server can be reached (defaults to {})."
2168
    )
2169
    (
102 ✔
2170
        "sparrow.more_safe",
2171
        setting<network::config::endpoints>(&configured.server.sparrow.more_safes),
34 ✔
2172
        "Advertised secure host:port at which another server can be reached (defaults to {})."
2173
    )
2174
    /* [esplora] */
2175
    (
102 ✔
2176
        "esplora.bind",
2177
        setting<network::config::authorities>(&configured.server.esplora.binds),
34 ✔
2178
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
2179
    )
2180
    (
102 ✔
2181
        "esplora.safe",
2182
        setting<network::config::authorities>(&configured.server.esplora.safes),
34 ✔
2183
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
2184
    )
2185
    (
102 ✔
2186
        "esplora.cert_auth",
2187
        setting<config::path>(&configured.server.esplora.cert_auth),
34 ✔
2188
        "The trusted client certificate directory (*.PEM), enables client authentication."
2189
    )
2190
    (
102 ✔
2191
        "esplora.cert_path",
2192
        setting<config::path>(&configured.server.esplora.cert_path),
34 ✔
2193
        "The path to the server certificate file (.PEM), defaults to {}."
2194
    )
2195
    (
102 ✔
2196
        "esplora.key_path",
2197
        setting<config::path>(&configured.server.esplora.key_path),
34 ✔
2198
        "The path to the server private key file (.PEM), defaults to {}."
2199
    )
2200
    (
102 ✔
2201
        "esplora.key_pass",
2202
        secret<std::string>(&configured.server.esplora.key_pass),
34 ✔
2203
        "The password to decrypt the server private key file (.PEM), optional."
2204
    )
2205
    (
102 ✔
2206
        "esplora.credential",
2207
        secret<network::config::credentials>(&configured.server.esplora.credentials),
34 ✔
2208
        "The 'username:password[:method,...]' authorization (not secure), multiple allowed."
2209
    )
2210
    (
102 ✔
2211
        "esplora.connections",
2212
        setting<uint16_t>(&configured.server.esplora.connections),
34 ✔
2213
        "The required maximum number of connections, defaults to {}."
2214
    )
2215
    (
102 ✔
2216
        "esplora.rate_limit",
2217
        setting<uint32_t>(&configured.server.esplora.rate_limit),
34 ✔
2218
        "The send rate limit in bytes per second, defaults to {} (network controls)."
2219
    )
2220
    (
102 ✔
2221
        "esplora.connect_timeout_seconds",
2222
        setting<uint32_t>(&configured.server.esplora.connect_timeout_seconds),
34 ✔
2223
        "The time limit for connection establishment, defaults to {} (network controls)."
2224
    )
2225
    (
102 ✔
2226
        "esplora.inactivity_minutes",
2227
        setting<uint32_t>(&configured.server.esplora.inactivity_minutes),
34 ✔
2228
        "The idle timeout (http keep-alive), defaults to {}."
2229
    )
2230
    (
102 ✔
2231
        "esplora.expiration_minutes",
2232
        setting<uint32_t>(&configured.server.esplora.expiration_minutes),
34 ✔
2233
        "The maximum connection duration, defaults to {}."
2234
    )
2235
    (
102 ✔
2236
        "esplora.minimum_buffer",
2237
        setting<uint32_t>(&configured.server.esplora.minimum_buffer),
34 ✔
2238
        "The minimum retained read buffer size, defaults to {}."
2239
    )
2240
    (
102 ✔
2241
        "esplora.maximum_backlog",
2242
        setting<uint32_t>(&configured.server.esplora.maximum_backlog),
34 ✔
2243
        "The maximum write backlog of a channel, defaults to {}."
2244
    )
2245
    (
102 ✔
2246
        "esplora.maximum_buffer",
2247
        setting<uint32_t>(&configured.server.esplora.maximum_buffer),
34 ✔
2248
        "The maximum json response buffer size, defaults to {}."
2249
    )
2250
    (
102 ✔
2251
        "esplora.maximum_request",
2252
        setting<uint32_t>(&configured.server.esplora.maximum_request),
34 ✔
2253
        "The maximum allowed request size, defaults to {}."
2254
    )
2255
    (
102 ✔
2256
        "esplora.server",
2257
        setting<std::string>(&configured.server.esplora.server),
34 ✔
2258
        "The server name (http header), defaults to {}."
2259
    )
2260
    (
102 ✔
2261
        "esplora.protocol_version",
2262
        setting<uint32_t>(&configured.server.esplora.protocol_version),
34 ✔
2263
        "The interface version (10000 major, 100 minor, patch), defaults to {}."
2264
    )
2265
    (
102 ✔
2266
        "esplora.maximum_history",
2267
        setting<uint32_t>(&configured.server.esplora.maximum_history),
34 ✔
2268
        "The maximum number of address history entries, defaults to {}."
2269
    )
2270
    (
102 ✔
2271
        "esplora.host",
2272
        setting<network::config::endpoints>(&configured.server.esplora.hosts),
34 ✔
2273
        "The host name (http verification), multiple allowed, defaults to {} (disabled)."
2274
    )
2275
    (
102 ✔
2276
        "esplora.origin",
2277
        setting<network::config::endpoints>(&configured.server.esplora.origins),
34 ✔
2278
        "The allowed origin (see CORS), multiple allowed, defaults to {} (disabled)."
2279
    )
2280
    (
102 ✔
2281
        "esplora.allow_opaque_origin",
2282
        setting<bool>(&configured.server.esplora.allow_opaque_origin),
34 ✔
2283
        "Allow requests from opaque origin (see CORS), defaults to {}."
2284
    )
2285
    (
102 ✔
2286
        "esplora.compression",
2287
        setting<bool>(&configured.server.esplora.compression),
34 ✔
2288
        "Compress response bodies as accepted by the request (gzip, deflate), defaults to {}."
2289
    )
2290
#if defined(DISABLED)
2291
    /* [stratum_v1] */
2292
    (
2293
        "stratum_v1.bind",
2294
        setting<network::config::authorities>(&configured.server.stratum_v1.binds),
2295
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
2296
    )
2297
    (
2298
        "stratum_v1.safe",
2299
        setting<network::config::authorities>(&configured.server.stratum_v1.safes),
2300
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
2301
    )
2302
    (
2303
        "stratum_v1.cert_path",
2304
        setting<config::path>(&configured.server.stratum_v1.cert_path),
2305
        "The path to the server certificate file (.PEM), defaults to {}."
2306
    )
2307
    (
2308
        "stratum_v1.key_path",
2309
        setting<config::path>(&configured.server.stratum_v1.key_path),
2310
        "The path to the server private key file (.PEM), defaults to {}."
2311
    )
2312
    (
2313
        "stratum_v1.connections",
2314
        setting<uint16_t>(&configured.server.stratum_v1.connections),
2315
        "The required maximum number of connections, defaults to {}."
2316
    )
2317
    (
2318
        "stratum_v1.rate_limit",
2319
        setting<uint32_t>(&configured.server.stratum_v1.rate_limit),
2320
        "The send rate limit in bytes per second, defaults to {} (network controls)."
2321
    )
2322
    (
2323
        "stratum_v1.connect_timeout_seconds",
2324
        setting<uint32_t>(&configured.server.stratum_v1.connect_timeout_seconds),
2325
        "The time limit for connection establishment, defaults to {} (network controls)."
2326
    )
2327
    (
2328
        "stratum_v1.inactivity_minutes",
2329
        setting<uint32_t>(&configured.server.stratum_v1.inactivity_minutes),
2330
        "The idle timeout (http keep-alive), defaults to {}."
2331
    )
2332
    (
2333
        "stratum_v1.expiration_minutes",
2334
        setting<uint32_t>(&configured.server.stratum_v1.expiration_minutes),
2335
        "The maximum connection duration, defaults to {}."
2336
    )
2337
    (
2338
        "stratum_v1.minimum_buffer",
2339
        setting<uint32_t>(&configured.server.stratum_v1.minimum_buffer),
2340
        "The minimum retained read buffer size, defaults to {}."
2341
    )
2342
    (
2343
        "stratum_v1.maximum_backlog",
2344
        setting<uint32_t>(&configured.server.stratum_v1.maximum_backlog),
2345
        "The maximum write backlog of a channel, defaults to {}."
2346
    )
2347
    (
2348
        "stratum_v1.maximum_buffer",
2349
        setting<uint32_t>(&configured.server.stratum_v1.maximum_buffer),
2350
        "The maximum json response buffer size, defaults to {}."
2351
    )
2352
    (
2353
        "stratum_v1.maximum_request",
2354
        setting<uint32_t>(&configured.server.stratum_v1.maximum_request),
2355
        "The maximum allowed request size, defaults to {}."
2356
    )
2357

2358
    /* [stratum_v2] */
2359
    (
2360
        "stratum_v2.bind",
2361
        setting<network::config::authorities>(&configured.server.stratum_v2.binds),
2362
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
2363
    )
2364
    (
2365
        "stratum_v2.connections",
2366
        setting<uint16_t>(&configured.server.stratum_v2.connections),
2367
        "The required maximum number of connections, defaults to {}."
2368
    )
2369
    (
2370
        "stratum_v2.rate_limit",
2371
        setting<uint32_t>(&configured.server.stratum_v2.rate_limit),
2372
        "The send rate limit in bytes per second, defaults to {} (network controls)."
2373
    )
2374
    (
2375
        "stratum_v2.connect_timeout_seconds",
2376
        setting<uint32_t>(&configured.server.stratum_v2.connect_timeout_seconds),
2377
        "The time limit for connection establishment, defaults to {} (network controls)."
2378
    )
2379
    (
2380
        "stratum_v2.inactivity_minutes",
2381
        setting<uint32_t>(&configured.server.stratum_v2.inactivity_minutes),
2382
        "The idle timeout (http keep-alive), defaults to {}."
2383
    )
2384
    (
2385
        "stratum_v2.expiration_minutes",
2386
        setting<uint32_t>(&configured.server.stratum_v2.expiration_minutes),
2387
        "The maximum connection duration, defaults to {}."
2388
    )
2389
    (
2390
        "stratum_v2.minimum_buffer",
2391
        setting<uint32_t>(&configured.server.stratum_v2.minimum_buffer),
2392
        "The minimum retained read buffer size, defaults to {}."
2393
    )
2394
    (
2395
        "stratum_v2.maximum_backlog",
2396
        setting<uint32_t>(&configured.server.stratum_v2.maximum_backlog),
2397
        "The maximum write backlog of a channel, defaults to {}."
2398
    )
2399
    (
2400
        "stratum_v2.maximum_request",
2401
        setting<uint32_t>(&configured.server.stratum_v2.maximum_request),
2402
        "The maximum allowed request size, defaults to {}."
2403
    )
2404

2405
#endif
2406
    /* [node] */
2407
    (
102 ✔
2408
        "node.threads",
2409
        setting<uint32_t>(&configured.node.threads),
34 ✔
2410
        "The number of threads in the validation threadpool, defaults to {} (hardware threads)."
2411
    )
2412
    (
102 ✔
2413
        "node.thread_priority",
2414
        setting<bool>(&configured.node.thread_priority),
34 ✔
2415
        "Set validation threads to high processing priority, defaults to {}."
2416
    )
2417
    (
102 ✔
2418
        "node.delay_inbound",
2419
        setting<bool>(&configured.node.delay_inbound),
34 ✔
2420
        "Block inbound peer/client (excluding admin) until current, defaults to {}."
2421
    )
2422
    (
102 ✔
2423
        "node.provide_blocks",
2424
        setting<bool>(&configured.node.provide_blocks),
34 ✔
2425
        "Serve blocks to network connections, defaults to {}."
2426
    )
2427
    (
102 ✔
2428
        "node.limited_blocks",
2429
        setting<bool>(&configured.node.limited_blocks),
34 ✔
2430
        "Limit block service to recent blocks, defaults to {}."
2431
    )
2432
    (
102 ✔
2433
        "node.require_blocks",
2434
        setting<bool>(&configured.node.require_blocks),
34 ✔
2435
        "Require block service of outbound connections, defaults to {}."
2436
    )
2437
    (
102 ✔
2438
        "node.provide_witness",
2439
        setting<bool>(&configured.node.provide_witness),
34 ✔
2440
        "Serve witness data to network connections, defaults to {}."
2441
    )
2442
    (
102 ✔
2443
        "node.require_witness",
2444
        setting<bool>(&configured.node.require_witness),
34 ✔
2445
        "Require witness service of outbound connections, defaults to {}."
2446
    )
2447
    (
102 ✔
2448
        "node.provide_filters",
2449
        setting<bool>(&configured.node.provide_filters),
34 ✔
2450
        "Serve client filters to network connections, indexed only if set at store creation, defaults to {}."
2451
    )
2452
    (
102 ✔
2453
        "node.provide_privacy",
2454
        setting<bool>(&configured.node.provide_privacy),
34 ✔
2455
        "Provide opportunistic connection encryption, defaults to {}."
2456
    )
2457
    (
102 ✔
2458
        "node.use_gpu",
2459
        setting<bool>(&configured.node.use_gpu),
34 ✔
2460
        "Use the GPU where available, defaults to {}."
2461
    )
2462
    ////(
2463
    ////    "node.cpu_batch_verify",
2464
    ////    setting<bool>(&configured.node.cpu_batch_verify),
2465
    ////    "Batch signature verification on the CPU when the GPU is not used, defaults to {}."
2466
    ////)
2467
    ////(
2468
    ////    "node.cpu_batch_silent",
2469
    ////    setting<bool>(&configured.node.cpu_batch_silent),
2470
    ////    "Batch silent payment indexing on the CPU when the GPU is not used, defaults to {}."
2471
    ////)
2472
    (
102 ✔
2473
        "node.batch_verify",
2474
        setting<uint64_t>(&configured.node.batch_verify),
34 ✔
2475
        "Count of signatures to verify in each batch, defaults to {} (0 disables)."
2476
    )
2477
    (
102 ✔
2478
        "node.batch_silent",
2479
        setting<uint64_t>(&configured.node.batch_silent),
34 ✔
2480
        "Count of silent payment transactions to index in each batch, defaults to {} (0 disables)."
2481
    )
2482
    (
102 ✔
2483
        "node.allowed_deviation",
2484
        setting<float>(&configured.node.allowed_deviation),
34 ✔
2485
        "Allowable underperformance standard deviation, defaults to {} (0 disables)."
2486
    )
2487
    (
102 ✔
2488
        "node.maximum_height",
2489
        setting<uint32_t>(&configured.node.maximum_height),
34 ✔
2490
        "Maximum block height to populate, defaults to {} (unlimited)."
2491
    )
2492
    (
102 ✔
2493
        "node.silent_start_height",
2494
        setting<uint32_t>(&configured.node.silent_start_height),
34 ✔
2495
        "Minimum height of silent payment indexation, defaults to {}."
2496
    )
2497
    (
102 ✔
2498
        "node.maximum_concurrency",
2499
        setting<uint32_t>(&configured.node.maximum_concurrency),
34 ✔
2500
        "Maximum number of blocks to download concurrently, defaults to {} (0 disables)."
2501
    )
2502
    (
102 ✔
2503
        "node.sample_period_seconds",
2504
        setting<uint16_t>(&configured.node.sample_period_seconds),
34 ✔
2505
        "Sampling period for drop of stalled channels, defaults to {} (0 disables)."
2506
    )
2507
    (
102 ✔
2508
        "node.compact_timeout_seconds",
2509
        setting<uint16_t>(&configured.node.compact_timeout_seconds),
34 ✔
2510
        "Time to await a compact block fill before downloading the block, defaults to {} (0 disables)."
2511
    )
2512
    (
102 ✔
2513
        "node.compact_missing_percent",
2514
        setting<uint8_t>(&configured.node.compact_missing_percent),
34 ✔
2515
        "Maximum percent of a compact block not pooled to fill it, defaults to {}."
2516
    )
2517
    (
102 ✔
2518
        "node.currency_window_minutes",
2519
        setting<uint32_t>(&configured.node.currency_window_minutes),
34 ✔
2520
        "Time from present that blocks are considered current, defaults to {} (0 disables)."
2521
    )
2522
    ////(
2523
    ////    "node.snapshot_bytes",
2524
    ////    setting<uint64_t>(&configured.node.snapshot_bytes),
2525
    ////    "Downloaded bytes that triggers snapshot, defaults to {} (0 disables)."
2526
    ////)
2527
    ////(
2528
    ////    "node.snapshot_valid",
2529
    ////    setting<uint32_t>(&configured.node.snapshot_valid),
2530
    ////    "Completed validations that trigger snapshot, defaults to {} (0 disables)."
2531
    ////)
2532
    ////(
2533
    ////    "node.snapshot_confirm",
2534
    ////    setting<uint32_t>(&configured.node.snapshot_confirm),
2535
    ////    "Completed confirmations that trigger snapshot, defaults to {} (0 disables)."
2536
    ////)
2537

2538
    /* [pool] */
2539
    (
102 ✔
2540
        "pool.minimum_fee_rate",
2541
        setting<double>(&configured.node.pool.minimum_fee_rate),
34 ✔
2542
        "Minimum fee rate for non-conflicting tx acceptance, defaults to {}."
2543
    )
2544
    (
102 ✔
2545
        "pool.cutoff_rate",
2546
        setting<double>(&configured.node.pool.cutoff_rate),
34 ✔
2547
        "Fee rate on space when resolving template conflicts, defaults to {}."
2548
    )
2549
    (
102 ✔
2550
        "pool.maximum_outcomes",
2551
        setting<uint32_t>(&configured.node.pool.maximum_outcomes),
34 ✔
2552
        "Maximum conflict outcomes evaluated to accept a transaction, defaults to {}."
2553
    )
2554
    (
102 ✔
2555
        "pool.bytes_per_sigop",
2556
        setting<uint32_t>(&configured.node.pool.bytes_per_sigop),
34 ✔
2557
        "Virtual bytes charged per signature operation, defaults to {}."
2558
    )
2559
    (
102 ✔
2560
        "pool.coinbase_weight",
2561
        setting<uint32_t>(&configured.node.pool.coinbase_weight),
34 ✔
2562
        "Declared weight of the miner's coinbase transaction, defaults to {}."
2563
    )
2564
    (
102 ✔
2565
        "pool.maximum_chunk_depth",
2566
        setting<uint32_t>(&configured.node.pool.maximum_chunk_depth),
34 ✔
2567
        "Maximum ancestor depth of a block template chunk, defaults to {}."
2568
    )
2569

2570
    /* [database] */
2571
    (
102 ✔
2572
        "database.turbo",
2573
        setting<bool>(&configured.database.turbo),
34 ✔
2574
        "Allow individual non-validation queries to use all CPUs, defaults to {}."
2575
    )
2576
    (
102 ✔
2577
        "database.cold_reads",
2578
        setting<uint16_t>(&configured.database.cold_reads),
34 ✔
2579
        "Limit of concurrent prefetched block reads from disk, defaults to {} (0 unlimited)."
2580
    )
2581
    (
102 ✔
2582
        "database.memory_reserve",
2583
        setting<uint64_t>(&configured.database.memory_reserve),
34 ✔
2584
        "Bytes of unused memory restored by cache release when current, defaults to {} (0 disables)."
2585
    )
2586
    (
102 ✔
2587
        "database.memory_ceiling",
2588
        setting<uint64_t>(&configured.database.memory_ceiling),
34 ✔
2589
        "Bytes of process memory above which cache is released when current, defaults to {} (0 disables)."
2590
    )
2591
    (
102 ✔
2592
        "database.gpu_scan_minimum",
2593
        setting<uint32_t>(&configured.database.gpu_scan_minimum),
34 ✔
2594
        "Minimum transactions for a silent payment scan to use the GPU, defaults to {}."
2595
    )
2596
    (
102 ✔
2597
        "database.mark_unconfirmable",
2598
        setting<bool>(&configured.database.mark_unconfirmable),
34 ✔
2599
        "Save unconfirmable block state (prevents revalidation), defaults to {}."
2600
    )
2601
    (
102 ✔
2602
        "database.interval_depth",
2603
        setting<uint8_t>(&configured.database.interval_depth),
34 ✔
2604
        "The interval depth for merkle proof optimization, defaults to {}."
2605
    )
2606

2607
    /* [table.*] */
2608

2609
    /* table.header */
2610
    (
102 ✔
2611
        "table.header.buckets",
2612
        setting<uint32_t>(&configured.database.header.buckets),
34 ✔
2613
        "The number of buckets in the header table head, derived from expected and memory, defaults to {}."
2614
    )
2615
    (
102 ✔
2616
        "table.header.expected",
2617
        setting<uint64_t>(&configured.database.header.expected),
34 ✔
2618
        "The expected element count of the header table, defaults to {}."
2619
    )
2620
    (
102 ✔
2621
        "table.header.size",
2622
        setting<uint64_t>(&configured.database.header.size),
34 ✔
2623
        "The minimum allocation of the header table body, defaults to {}."
2624
    )
2625
    (
102 ✔
2626
        "table.header.rate",
2627
        setting<uint16_t>(&configured.database.header.rate),
34 ✔
2628
        "The percentage expansion of the header table body, defaults to {}."
2629
    )
2630

2631
    /* table.input */
2632
    (
102 ✔
2633
        "table.input.size",
2634
        setting<uint64_t>(&configured.database.input.size),
34 ✔
2635
        "The minimum allocation of the input table body, defaults to {}."
2636
    )
2637
    (
102 ✔
2638
        "table.input.rate",
2639
        setting<uint16_t>(&configured.database.input.rate),
34 ✔
2640
        "The percentage expansion of the input table body, defaults to {}."
2641
    )
2642

2643
    /* table.output */
2644
    (
102 ✔
2645
        "table.output.size",
2646
        setting<uint64_t>(&configured.database.output.size),
34 ✔
2647
        "The minimum allocation of the output table body, defaults to {}."
2648
    )
2649
    (
102 ✔
2650
        "table.output.rate",
2651
        setting<uint16_t>(&configured.database.output.rate),
34 ✔
2652
        "The percentage expansion of the output table body, defaults to {}."
2653
    )
2654

2655
    /* table.ins */
2656
    (
102 ✔
2657
        "table.ins.buckets",
2658
        setting<uint32_t>(&configured.database.ins.buckets),
34 ✔
2659
        "The number of buckets in the ins table head, derived from expected and memory, defaults to {}."
2660
    )
2661
    (
102 ✔
2662
        "table.ins.expected",
2663
        setting<uint64_t>(&configured.database.ins.expected),
34 ✔
2664
        "The expected element count of the ins table, defaults to {}."
2665
    )
2666
    (
102 ✔
2667
        "table.ins.size",
2668
        setting<uint64_t>(&configured.database.ins.size),
34 ✔
2669
        "The minimum allocation of the ins table body, defaults to {}."
2670
    )
2671
    (
102 ✔
2672
        "table.ins.rate",
2673
        setting<uint16_t>(&configured.database.ins.rate),
34 ✔
2674
        "The percentage expansion of the ins table body, defaults to {}."
2675
    )
2676

2677
    /* table.outs */
2678
    (
102 ✔
2679
        "table.outs.buckets",
2680
        setting<uint32_t>(&configured.database.outs.buckets),
34 ✔
2681
        "The number of buckets in the outs table head, derived from expected and memory, defaults to {} (0 disables address index)."
2682
    )
2683
    (
102 ✔
2684
        "table.outs.expected",
2685
        setting<uint64_t>(&configured.database.outs.expected),
34 ✔
2686
        "The expected element count of the outs table, defaults to {}."
2687
    )
2688
    (
102 ✔
2689
        "table.outs.size",
2690
        setting<uint64_t>(&configured.database.outs.size),
34 ✔
2691
        "The minimum allocation of the outs table body, defaults to {}."
2692
    )
2693
    (
102 ✔
2694
        "table.outs.rate",
2695
        setting<uint16_t>(&configured.database.outs.rate),
34 ✔
2696
        "The percentage expansion of the outs table body, defaults to {}."
2697
    )
2698

2699
    /* table.tx */
2700
    (
102 ✔
2701
        "table.tx.buckets",
2702
        setting<uint32_t>(&configured.database.tx.buckets),
34 ✔
2703
        "The number of buckets in the tx table head, derived from expected and memory, defaults to {}."
2704
    )
2705
    (
102 ✔
2706
        "table.tx.expected",
2707
        setting<uint64_t>(&configured.database.tx.expected),
34 ✔
2708
        "The expected element count of the tx table, defaults to {}."
2709
    )
2710
    (
102 ✔
2711
        "table.tx.size",
2712
        setting<uint64_t>(&configured.database.tx.size),
34 ✔
2713
        "The minimum allocation of the tx table body, defaults to {}."
2714
    )
2715
    (
102 ✔
2716
        "table.tx.rate",
2717
        setting<uint16_t>(&configured.database.tx.rate),
34 ✔
2718
        "The percentage expansion of the tx table body, defaults to {}."
2719
    )
2720

2721
    /* table.txs */
2722
    (
102 ✔
2723
        "table.txs.buckets",
2724
        setting<uint32_t>(&configured.database.txs.buckets),
34 ✔
2725
        "The number of buckets in the txs table head, defaults to {}."
2726
    )
2727
    (
102 ✔
2728
        "table.txs.size",
2729
        setting<uint64_t>(&configured.database.txs.size),
34 ✔
2730
        "The minimum allocation of the txs table body, defaults to {}."
2731
    )
2732
    (
102 ✔
2733
        "table.txs.rate",
2734
        setting<uint16_t>(&configured.database.txs.rate),
34 ✔
2735
        "The percentage expansion of the txs table body, defaults to {}."
2736
    )
2737

2738
    /* table.candidate */
2739
    (
102 ✔
2740
        "table.candidate.buckets",
2741
        setting<uint32_t>(&configured.database.candidate.buckets),
34 ✔
2742
        "The number of buckets provisioned in the candidate table head, defaults to {}."
2743
    )
2744
    (
102 ✔
2745
        "table.candidate.rate",
2746
        setting<uint16_t>(&configured.database.candidate.rate),
34 ✔
2747
        "The percentage expansion of the candidate table head, defaults to {}."
2748
    )
2749

2750
    /* table.confirmed */
2751
    (
102 ✔
2752
        "table.confirmed.buckets",
2753
        setting<uint32_t>(&configured.database.confirmed.buckets),
34 ✔
2754
        "The number of buckets provisioned in the confirmed table head, defaults to {}."
2755
    )
2756
    (
102 ✔
2757
        "table.confirmed.rate",
2758
        setting<uint16_t>(&configured.database.confirmed.rate),
34 ✔
2759
        "The percentage expansion of the confirmed table head, defaults to {}."
2760
    )
2761

2762
    /* table.strong */
2763
    (
102 ✔
2764
        "table.strong.buckets",
2765
        setting<uint32_t>(&configured.database.strong.buckets),
34 ✔
2766
        "The number of buckets provisioned in the strong table head, derived from tx expected, defaults to {}."
2767
    )
2768
    (
102 ✔
2769
        "table.strong.rate",
2770
        setting<uint16_t>(&configured.database.strong.rate),
34 ✔
2771
        "The percentage expansion of the strong table head, defaults to {}."
2772
    )
2773

2774
    /* table.scan */
2775
    (
102 ✔
2776
        "table.scan.buckets",
2777
        setting<uint32_t>(&configured.database.scan.buckets),
34 ✔
2778
        "The number of buckets provisioned in the scan table head, defaults to {}."
2779
    )
2780
    (
102 ✔
2781
        "table.scan.size",
2782
        setting<uint64_t>(&configured.database.scan.size),
34 ✔
2783
        "The minimum allocation of the scan table body, defaults to {}."
2784
    )
2785
    (
102 ✔
2786
        "table.scan.rate",
2787
        setting<uint16_t>(&configured.database.scan.rate),
34 ✔
2788
        "The percentage expansion of the scan table body, defaults to {}."
2789
    )
2790

2791
    /* table.wtxid */
2792
    (
102 ✔
2793
        "table.wtxid.buckets",
2794
        setting<uint32_t>(&configured.database.wtxid.buckets),
34 ✔
2795
        "The number of buckets in the wtxid table head, derived from expected and memory, defaults to {} (0 disables)."
2796
    )
2797
    (
102 ✔
2798
        "table.wtxid.expected",
2799
        setting<uint64_t>(&configured.database.wtxid.expected),
34 ✔
2800
        "The expected element count of the wtxid table, defaults to {}."
2801
    )
2802
    (
102 ✔
2803
        "table.wtxid.size",
2804
        setting<uint64_t>(&configured.database.wtxid.size),
34 ✔
2805
        "The minimum allocation of the wtxid table body, defaults to {}."
2806
    )
2807
    (
102 ✔
2808
        "table.wtxid.rate",
2809
        setting<uint16_t>(&configured.database.wtxid.rate),
34 ✔
2810
        "The percentage expansion of the wtxid table body, defaults to {}."
2811
    )
2812

2813
    /* table.ecdsa */
2814
    (
102 ✔
2815
        "table.ecdsa.size",
2816
        setting<uint64_t>(&configured.database.ecdsa.size),
34 ✔
2817
        "The minimum allocation of each batch_ecdsa table body, defaults to {}."
2818
    )
2819
    (
102 ✔
2820
        "table.ecdsa.rate",
2821
        setting<uint16_t>(&configured.database.ecdsa.rate),
34 ✔
2822
        "The percentage expansion of each batch_ecdsa table body, defaults to {}."
2823
    )
2824

2825
    /* table.schnorr */
2826
    (
102 ✔
2827
        "table.schnorr.size",
2828
        setting<uint64_t>(&configured.database.schnorr.size),
34 ✔
2829
        "The minimum allocation of each batch_schnorr table body, defaults to {}."
2830
    )
2831
    (
102 ✔
2832
        "table.schnorr.rate",
2833
        setting<uint16_t>(&configured.database.schnorr.rate),
34 ✔
2834
        "The percentage expansion of each batch_schnorr table body, defaults to {}."
2835
    )
2836

2837
    /* table.silent */
2838
    (
102 ✔
2839
        "table.silent.size",
2840
        setting<uint64_t>(&configured.database.silent.size),
34 ✔
2841
        "The minimum allocation of each batch_silent table body, defaults to {}."
2842
    )
2843
    (
102 ✔
2844
        "table.silent.rate",
2845
        setting<uint16_t>(&configured.database.silent.rate),
34 ✔
2846
        "The percentage expansion of each batch_silent table body, defaults to {}."
2847
    )
2848

2849
    /* table.prevalid */
2850
    (
102 ✔
2851
        "table.prevalid.size",
2852
        setting<uint64_t>(&configured.database.prevalid.size),
34 ✔
2853
        "The minimum allocation of each batch_prevalid table body, defaults to {}."
2854
    )
2855
    (
102 ✔
2856
        "table.prevalid.rate",
2857
        setting<uint16_t>(&configured.database.prevalid.rate),
34 ✔
2858
        "The percentage expansion of each batch_prevalid table body, defaults to {}."
2859
    )
2860

2861
    /* table.presilent */
2862
    (
102 ✔
2863
        "table.presilent.size",
2864
        setting<uint64_t>(&configured.database.presilent.size),
34 ✔
2865
        "The minimum allocation of each batch_presilent table body, defaults to {}."
2866
    )
2867
    (
102 ✔
2868
        "table.presilent.rate",
2869
        setting<uint16_t>(&configured.database.presilent.rate),
34 ✔
2870
        "The percentage expansion of each batch_presilent table body, defaults to {}."
2871
    )
2872

2873
    /* table.prevout */
2874
    (
102 ✔
2875
        "table.prevout.buckets",
2876
        setting<uint32_t>(&configured.database.prevout.buckets),
34 ✔
2877
        "The minimum number of buckets in the prevout table head, defaults to {}."
2878
    )
2879
    (
102 ✔
2880
        "table.prevout.size",
2881
        setting<uint64_t>(&configured.database.prevout.size),
34 ✔
2882
        "The minimum allocation of the prevout table body, defaults to {}."
2883
    )
2884
    (
102 ✔
2885
        "table.prevout.rate",
2886
        setting<uint16_t>(&configured.database.prevout.rate),
34 ✔
2887
        "The percentage expansion of the prevout table, defaults to {}."
2888
    )
2889

2890
    /* table.duplicate */
2891
    (
102 ✔
2892
        "table.duplicate.buckets",
2893
        setting<uint32_t>(&configured.database.duplicate.buckets),
34 ✔
2894
        "The minimum number of buckets in the duplicate table head, defaults to {}."
2895
    )
2896
    (
102 ✔
2897
        "table.duplicate.expected",
2898
        setting<uint64_t>(&configured.database.duplicate.expected),
34 ✔
2899
        "The expected element count of the duplicate table, defaults to {}."
2900
    )
2901
    (
102 ✔
2902
        "table.duplicate.size",
2903
        setting<uint64_t>(&configured.database.duplicate.size),
34 ✔
2904
        "The minimum allocation of the duplicate table body, defaults to {}."
2905
    )
2906
    (
102 ✔
2907
        "table.duplicate.rate",
2908
        setting<uint16_t>(&configured.database.duplicate.rate),
34 ✔
2909
        "The percentage expansion of the duplicate table, defaults to {}."
2910
    )
2911

2912
    /* table.state */
2913
    (
102 ✔
2914
        "table.state.buckets",
2915
        setting<uint32_t>(&configured.database.state.buckets),
34 ✔
2916
        "The number of buckets provisioned in the state table head, defaults to {}."
2917
    )
2918
    (
102 ✔
2919
        "table.state.rate",
2920
        setting<uint16_t>(&configured.database.state.rate),
34 ✔
2921
        "The percentage expansion of the state table head, defaults to {}."
2922
    )
2923

2924
    /* table.pool */
2925
    (
102 ✔
2926
        "table.pool.buckets",
2927
        setting<uint32_t>(&configured.database.pool.buckets),
34 ✔
2928
        "The number of buckets in the pool table head, derived from expected and memory, defaults to {} (0 disables)."
2929
    )
2930
    (
102 ✔
2931
        "table.pool.expected",
2932
        setting<uint64_t>(&configured.database.pool.expected),
34 ✔
2933
        "The expected element count of the pool table, defaults to {}."
2934
    )
2935
    (
102 ✔
2936
        "table.pool.size",
2937
        setting<uint64_t>(&configured.database.pool.size),
34 ✔
2938
        "The minimum allocation of the pool table body, defaults to {}."
2939
    )
2940
    (
102 ✔
2941
        "table.pool.rate",
2942
        setting<uint16_t>(&configured.database.pool.rate),
34 ✔
2943
        "The percentage expansion of the pool table body, defaults to {}."
2944
    )
2945

2946
    /* table.spends */
2947
    (
102 ✔
2948
        "table.spends.size",
2949
        setting<uint64_t>(&configured.database.spends.size),
34 ✔
2950
        "The minimum allocation of the spends table body, defaults to {}."
2951
    )
2952
    (
102 ✔
2953
        "table.spends.rate",
2954
        setting<uint16_t>(&configured.database.spends.rate),
34 ✔
2955
        "The percentage expansion of the spends table body, defaults to {}."
2956
    )
2957

2958
    /* table.filter_bk */
2959
    (
102 ✔
2960
        "table.filter_bk.buckets",
2961
        setting<uint32_t>(&configured.database.filter_bk.buckets),
34 ✔
2962
        "The number of buckets in the filter_bk table head, defaults to {}."
2963
    )
2964
    (
102 ✔
2965
        "table.filter_bk.size",
2966
        setting<uint64_t>(&configured.database.filter_bk.size),
34 ✔
2967
        "The minimum allocation of the filter_bk table body, defaults to {}."
2968
    )
2969
    (
102 ✔
2970
        "table.filter_bk.rate",
2971
        setting<uint16_t>(&configured.database.filter_bk.rate),
34 ✔
2972
        "The percentage expansion of the filter_bk table body, defaults to {}."
2973
    )
2974

2975
    /* table.filter_tx */
2976
    (
102 ✔
2977
        "table.filter_tx.buckets",
2978
        setting<uint32_t>(&configured.database.filter_tx.buckets),
34 ✔
2979
        "The number of buckets in the filter_tx table head, defaults to {}."
2980
    )
2981
    (
102 ✔
2982
        "table.filter_tx.size",
2983
        setting<uint64_t>(&configured.database.filter_tx.size),
34 ✔
2984
        "The minimum allocation of the filter_tx table body, defaults to {}."
2985
    )
2986
    (
102 ✔
2987
        "table.filter_tx.rate",
2988
        setting<uint16_t>(&configured.database.filter_tx.rate),
34 ✔
2989
        "The percentage expansion of the filter_tx table body, defaults to {}."
2990
    )
2991

2992
    /* [log] */
2993
#if defined(HAVE_LOGA)
2994
    (
102 ✔
2995
        "log.application",
2996
        setting<bool>(&configured.log.application),
34 ✔
2997
        "Enable application logging, defaults to {}."
2998
    )
2999
#endif
3000
#if defined(HAVE_LOGN)
3001
    (
102 ✔
3002
        "log.news",
3003
        setting<bool>(&configured.log.news),
34 ✔
3004
        "Enable news logging, defaults to {}."
3005
    )
3006
#endif
3007
#if defined(HAVE_LOGS)
3008
    (
102 ✔
3009
        "log.session",
3010
        setting<bool>(&configured.log.session),
34 ✔
3011
        "Enable session logging, defaults to {}."
3012
    )
3013
#endif
3014
#if defined(HAVE_LOGP)
3015
    (
102 ✔
3016
        "log.protocol",
3017
        setting<bool>(&configured.log.protocol),
34 ✔
3018
        "Enable protocol logging, defaults to {}."
3019
    )
3020
#endif
3021
#if defined(HAVE_LOGX)
3022
    (
102 ✔
3023
        "log.proxy",
3024
        setting<bool>(&configured.log.proxy),
34 ✔
3025
        "Enable proxy logging, defaults to {}."
3026
    )
3027
#endif
3028
#if defined(HAVE_LOGR)
3029
    (
102 ✔
3030
        "log.remote",
3031
        setting<bool>(&configured.log.remote),
34 ✔
3032
        "Enable remote fault logging, defaults to {}."
3033
    )
3034
#endif
3035
#if defined(HAVE_LOGF)
3036
    (
102 ✔
3037
        "log.fault",
3038
        setting<bool>(&configured.log.fault),
34 ✔
3039
        "Enable local fault logging, defaults to {}."
3040
    )
3041
#endif
3042
#if defined(HAVE_LOGQ)
3043
    (
102 ✔
3044
        "log.quitting",
3045
        setting<bool>(&configured.log.quitting),
34 ✔
3046
        "Enable quitting logging, defaults to {}."
3047
    )
3048
#endif
3049
#if defined(HAVE_LOGO)
3050
    (
102 ✔
3051
        "log.objects",
3052
        setting<bool>(&configured.log.objects),
34 ✔
3053
        "Enable objects logging, defaults to {}."
3054
    )
3055
#endif
3056
#if defined(HAVE_LOGV)
3057
    (
102 ✔
3058
        "log.verbose",
3059
        setting<bool>(&configured.log.verbose),
34 ✔
3060
        "Enable verbose logging, defaults to {}."
3061
    )
3062
#endif
3063
    (
102 ✔
3064
        "log.console",
3065
        setting<bool>(&configured.log.console),
34 ✔
3066
        "Write the console log to a pair of rotated log files, defaults to {}."
3067
    )
3068
    (
102 ✔
3069
        "log.limit",
3070
        setting<uint32_t>(&configured.log.limit),
34 ✔
3071
        "The maximum byte size of each pair of rotated log files, defaults to {}."
3072
    )
3073
    (
102 ✔
3074
        "log.events",
3075
        setting<bool>(&configured.log.events),
34 ✔
3076
        "Write events to the events log file, defaults to {}."
3077
    )
3078
    (
68 ✔
3079
        "log.thread_priority",
3080
        setting<bool>(&configured.log.thread_priority),
34 ✔
3081
        "Set the log thread to normal processing priority, defaults to {}."
3082
    );
3083

3084
    return description;
34 ✔
UNCOV
3085
}
×
3086

3087
BC_PUSH_WARNING(NO_ARRAY_TO_POINTER_DECAY)
3088
bool parser::parse(int argc, const char* argv[], std::ostream& error) THROWS
36 ✔
3089
BC_POP_WARNING()
3090
{
3091
    try
3092
    {
3093
        auto file = false;
3094
        load_command_variables(argc, argv);
36 ✔
3095
        ////load_environment_variables(environment_prefix);
3096

3097
        // Don't load config file if help is specified.
3098
        if (!get_option(help_variable))
34 ✔
3099
        {
3100
            // Returns true if the settings were loaded from a file.
3101
            file = load_configuration_variables(config_variable);
34 ✔
3102
        }
3103

3104
        // Update bound variables in metadata.settings.
3105
        notify(variables_);
34 ✔
3106
        select_network();
34 ✔
3107
        select_root();
34 ✔
3108
        select_paths();
34 ✔
3109
        derive_buckets();
34 ✔
3110

3111
        // Clear the config file path if it wasn't used.
3112
        if (!file)
34 ✔
3113
            configured.file = {};
7 ✔
3114
    }
3115
    catch (const option_exception& e)
2 ✔
3116
    {
3117
        error << format_invalid_parameter(e.what()) << std::endl;
2 ✔
3118
        return false;
3119
    }
2 ✔
3120

3121
    return true;
3122
}
3123

3124
} // namespace server
3125
} // namespace libbitcoin
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc