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

libbitcoin / libbitcoin-server / 44691724904

20 Nov 2026 06:59AM UTC coverage: 95.15% (+0.05%) from 95.102%
44691724904

push

github

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

Fix test, disable admin channel inactivity and expiration by default.

2 of 2 new or added lines in 1 file covered. (100.0%)

122 existing lines in 14 files now uncovered.

12792 of 13444 relevant lines covered (95.15%)

445.71 hits per line

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

99.13
/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
    overrides = stored.apply(configured.bitcoin, configured.database,
2 ✔
195
        configured.node.limited_blocks, configured.node.require_witness,
2 ✔
196
        configured.node.silent_start_height);
2 ✔
197
}
3 ✔
198

199
// Network defaults are reset, and then configured settings are reapplied.
200
// Paths are retained, as they are network independent once resolved.
201
void parser::reset_network(chain::selection context) NOEXCEPT
26 ✔
202
{
203
    const auto store = configured.database.path;
26 ✔
204
    const auto peers = configured.network.path;
26 ✔
205
    const auto key = configured.network.inbound.key_path;
26 ✔
206

207
    configured.bitcoin = system::settings{ context };
26 ✔
208
    configured.database = database::settings{ context };
26 ✔
209
    configured.network = network::settings{ context };
26 ✔
210
    configured.node = node::settings{ context };
26 ✔
211
    configured.server.network = context;
26 ✔
212
    configured.server.wallet = server::settings::wallet_settings{ context };
26 ✔
213

214
    BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
215
    for (const auto& option: settings().options())
12,454 ✔
216
    {
217
        const auto& name = option->long_name();
12,428 ✔
218
        if (is_configured(name))
12,428 ✔
219
            option->semantic()->notify(variables().at(name).value());
57 ✔
220
    }
221
    BC_POP_WARNING()
222

223
    configured.database.path = store;
26 ✔
224
    configured.network.path = peers;
26 ✔
225
    configured.network.inbound.key_path = key;
26 ✔
226
}
26 ✔
227

228
// Composes a variable name with its command line shortcut.
229
static std::string alias(const std::string& variable, char shortcut)
576 ✔
230
{
231
    return variable + ',' + shortcut;
576 ✔
232
}
233

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

340
#if defined(HAVE_SELF_TESTS)
341
    description.add_options()
342
    // Ad-hoc Testing.
343
    (
344
        alias(get_variable, 'g').c_str(),
345
        value<config::hash256>(&configured.get)->
346
            default_value(system::null_hash),
347
        "Run built-in read test and display."
348
    )
349
    (
350
        alias(put_variable, 'p').c_str(),
351
        value<config::hash256>(&configured.put)->
352
            default_value(system::null_hash),
353
        "Run built-in write test and display."
354
    );
355
#endif
356

357
    return description;
36 ✔
358
}
×
359

360
arguments_metadata parser::load_arguments() THROWS
36 ✔
361
{
362
    // There are no positional arguments, the config path requires --config.
363
    return arguments_metadata{};
36 ✔
364
}
365

366
options_metadata parser::load_environment() THROWS
×
367
{
368
    options_metadata description("environment");
×
369
    description.add_options()
×
370
    (
×
371
        // For some reason po requires this to be a lower case name.
372
        // The case must match the other declarations for it to compose.
373
        // This composes with the cmdline options and inits to default path.
374
        config_variable,
375
        value<config::path>(&configured.file)->composing()
×
376
            /*->default_value(config_default_path())*/,
377
        "The path to the configuration settings file."
378
    );
379

380
    return description;
×
381
}
×
382

383
options_metadata parser::load_settings() THROWS
34 ✔
384
{
385
    options_metadata description("settings");
34 ✔
386
    description.add_options()
34 ✔
387

388
    /* [folders] */
389
    (
102 ✔
390
        "folders.root",
391
        setting<config::path>(&configured.server.path),
34 ✔
392
        "The base of the network-named directory, defaults to the working directory."
393
    )
394
    (
102 ✔
395
        "folders.peers",
396
        setting<config::path>(&configured.network.path),
34 ✔
397
        "The peer address cache directory, relative to the network directory, defaults to it."
398
    )
399
    (
102 ✔
400
        "folders.events",
401
        setting<config::path>(&configured.log.events_path),
34 ✔
402
        "The events log directory, relative to the network directory, defaults to it."
403
    )
404
    (
102 ✔
405
        "folders.console",
406
        setting<config::path>(&configured.log.console_path),
34 ✔
407
        "The console log files directory, relative to the network directory, defaults to it."
408
    )
409
    (
102 ✔
410
        "folders.store",
411
        setting<config::path>(&configured.database.path),
34 ✔
412
        "The store directory, relative to the network directory, defaults to 'store'."
413
    )
414
    (
102 ✔
415
        "folders.admin",
416
        setting<config::path>(&configured.server.admin.path),
34 ✔
417
        "The admin web site directory, relative to the network directory, defaults to embedded pages."
418
    )
419
    (
102 ✔
420
        "folders.native",
421
        setting<config::path>(&configured.server.native.path),
34 ✔
422
        "The native web site directory, relative to the network directory, defaults to embedded pages."
423
    )
424
#if defined (HAVE_WINDOWS)
425
    (
426
        "folders.symbols",
427
        setting<config::path>(&configured.log.symbols_path),
428
        "The windows symbols (.pdb) directory, relative to the network directory, defaults to {}."
429
    )
430
#endif
431

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

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

884
    /* [network] */
885
    (
102 ✔
886
        "network.threads",
887
        setting<uint32_t>(&configured.network.threads),
34 ✔
888
        "The minimum number of threads in the network threadpool, defaults to {} (hardware threads, at most 32)."
889
    )
890
    (
102 ✔
891
        "network.retry_timeout_seconds",
892
        setting<uint32_t>(&configured.network.retry_timeout_seconds),
34 ✔
893
        "The time delay for failed connection retry, defaults to {}."
894
    )
895
    (
102 ✔
896
        "network.connect_timeout_seconds",
897
        setting<uint32_t>(&configured.network.connect_timeout_seconds),
34 ✔
898
        "The time limit for connection establishment, defaults to {}."
899
    )
900
    (
102 ✔
901
        "network.rate_limit",
902
        setting<uint32_t>(&configured.network.rate_limit),
34 ✔
903
        "The per channel send rate limit in bytes per second, defaults to {} (unlimited)."
904
    )
905
    (
102 ✔
906
        "network.blacklist",
907
        setting<network::config::authorities>(&configured.network.blacklists),
34 ✔
908
        "IP address to disallow, allows all others, multiple allowed."
909
    )
910
    (
102 ✔
911
        "network.whitelist",
912
        setting<network::config::authorities>(&configured.network.whitelists),
34 ✔
913
        "IP address to allow, prohibits all others, multiple allowed."
914
    )
915

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

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

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

1207
    /* [manual] */
1208
    ////(
1209
    ////    "manual.secure",
1210
    ////    setting<bool>(&configured.network.manual.secure),
1211
    ////    "Require transport layer security, defaults to {} (not implemented)."
1212
    ////)
1213
    (
102 ✔
1214
        "manual.bind",
1215
        setting<network::config::authorities>(&configured.network.manual.binds),
34 ✔
1216
        "IP address to bind manual connections, multiple allowed, defaults to {}."
1217
    )
1218
    ////(
1219
    ////    "manual.connections",
1220
    ////    setting<uint16_t>(&configured.network.manual.connections),
1221
    ////    "The target number of outgoing manual connections (not implemented)."
1222
    ////)
1223
    (
102 ✔
1224
        "manual.rate_limit",
1225
        setting<uint32_t>(&configured.network.manual.rate_limit),
34 ✔
1226
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1227
    )
1228
    (
102 ✔
1229
        "manual.connect_timeout_seconds",
1230
        setting<uint32_t>(&configured.network.manual.connect_timeout_seconds),
34 ✔
1231
        "The time limit for connection establishment, defaults to {} (network controls)."
1232
    )
1233
    (
102 ✔
1234
        "manual.inactivity_minutes",
1235
        setting<uint32_t>(&configured.network.manual.inactivity_minutes),
34 ✔
1236
        "The inactivity time limit for any connection, defaults to {} (0 disables, will attempt reconnect)."
1237
    )
1238
    (
102 ✔
1239
        "manual.expiration_minutes",
1240
        setting<uint32_t>(&configured.network.manual.expiration_minutes),
34 ✔
1241
        "The age limit for any connection, defaults to {} (0 disables, will attempt reconnect)."
1242
    )
1243
    (
102 ✔
1244
        "manual.minimum_buffer",
1245
        setting<uint32_t>(&configured.network.manual.minimum_buffer),
34 ✔
1246
        "The minimum retained read buffer size, defaults to {}."
1247
    )
1248
    (
102 ✔
1249
        "manual.maximum_backlog",
1250
        setting<uint32_t>(&configured.network.manual.maximum_backlog),
34 ✔
1251
        "The maximum write backlog of a channel, defaults to {}."
1252
    )
1253
    (
102 ✔
1254
        "manual.maximum_request",
1255
        setting<uint32_t>(&configured.network.manual.maximum_request),
34 ✔
1256
        "The maximum allowed request size, defaults to {}."
1257
    )
1258
    (
102 ✔
1259
        "manual.peer",
1260
        setting<network::config::endpoints>(&configured.network.manual.peers),
34 ✔
1261
        "A persistent peer node, multiple allowed."
1262
    )
1263
    (
102 ✔
1264
        "manual.username",
1265
        setting<std::string>(&configured.network.manual.username),
34 ✔
1266
        "The socks5 proxy username (optional)."
1267
    )
1268
    (
102 ✔
1269
        "manual.password",
1270
        secret<std::string>(&configured.network.manual.password),
34 ✔
1271
        "The socks5 proxy password (optional)."
1272
    )
1273
    (
102 ✔
1274
        "manual.socks",
1275
        setting<config::endpoint>(&configured.network.manual.socks),
34 ✔
1276
        "The socks5 proxy endpoint (port required)."
1277
    )
1278

1279
    /* [wallet] */
1280
    (
102 ✔
1281
        "wallet.p2kh_prefix",
1282
        setting<config::byte>(&configured.server.wallet.p2kh_prefix),
34 ✔
1283
        "The pay-to-public-key-hash address prefix, defaults to {} (use '111' for testnet)."
1284
    )
1285
    (
102 ✔
1286
        "wallet.p2sh_prefix",
1287
        setting<config::byte>(&configured.server.wallet.p2sh_prefix),
34 ✔
1288
        "The pay-to-script-hash address prefix, defaults to {} (use '196' for testnet)."
1289
    )
1290
    (
102 ✔
1291
        "wallet.wif_prefix",
1292
        setting<config::byte>(&configured.server.wallet.wif_prefix),
34 ✔
1293
        "The wallet import format prefix, defaults to {} (use '239' for testnet)."
1294
    )
1295
    (
102 ✔
1296
        "wallet.witness_prefix",
1297
        setting<std::string>(&configured.server.wallet.witness_prefix),
34 ✔
1298
        "The witness address prefix, defaults to {} (use 'tb' for testnet)."
1299
    )
1300
    (
102 ✔
1301
        "wallet.silent_prefix",
1302
        setting<std::string>(&configured.server.wallet.silent_prefix),
34 ✔
1303
        "The silent payment address prefix, defaults to {} (use 'tsp' for testnet)."
1304
    )
1305
    (
102 ✔
1306
        "wallet.hd_private_prefix",
1307
        setting<uint32_t>(&configured.server.wallet.hd_private_prefix),
34 ✔
1308
        "The extended private key prefix, defaults to {} (use '70615956' for testnet)."
1309
    )
1310
    (
102 ✔
1311
        "wallet.hd_public_prefix",
1312
        setting<uint32_t>(&configured.server.wallet.hd_public_prefix),
34 ✔
1313
        "The extended public key prefix, defaults to {} (use '70617039' for testnet)."
1314
    )
1315

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

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

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

1662
    /* [zmq] */
1663
    (
102 ✔
1664
        "zmq.bind",
1665
        setting<network::config::authorities>(&configured.server.zmq.binds),
34 ✔
1666
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
1667
    )
1668
    (
102 ✔
1669
        "zmq.safe",
1670
        setting<network::config::authorities>(&configured.server.zmq.safes),
34 ✔
1671
        "IP address to secure (CurveZMQ) bind, multiple allowed, defaults to {} (disabled)."
1672
    )
1673
    (
102 ✔
1674
        "zmq.cert",
1675
        setting<std::vector<config::base85>>(&configured.server.zmq.certs),
34 ✔
1676
        "The Z85 encoded public key of an authorized client, multiple allowed, defaults to {} (all)."
1677
    )
1678
    (
102 ✔
1679
        "zmq.connections",
1680
        setting<uint16_t>(&configured.server.zmq.connections),
34 ✔
1681
        "The required maximum number of connections, defaults to {}."
1682
    )
1683
    (
102 ✔
1684
        "zmq.rate_limit",
1685
        setting<uint32_t>(&configured.server.zmq.rate_limit),
34 ✔
1686
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1687
    )
1688
    (
102 ✔
1689
        "zmq.connect_timeout_seconds",
1690
        setting<uint32_t>(&configured.server.zmq.connect_timeout_seconds),
34 ✔
1691
        "The time limit for connection establishment, defaults to {} (network controls)."
1692
    )
1693
    (
102 ✔
1694
        "zmq.minimum_buffer",
1695
        setting<uint32_t>(&configured.server.zmq.minimum_buffer),
34 ✔
1696
        "The minimum retained read buffer size, defaults to {}."
1697
    )
1698
    (
102 ✔
1699
        "zmq.maximum_backlog",
1700
        setting<uint32_t>(&configured.server.zmq.maximum_backlog),
34 ✔
1701
        "The maximum write backlog of a channel, defaults to {}."
1702
    )
1703
    (
102 ✔
1704
        "zmq.maximum_request",
1705
        setting<uint32_t>(&configured.server.zmq.maximum_request),
34 ✔
1706
        "The maximum allowed request size, defaults to {}."
1707
    )
1708
    (
102 ✔
1709
        "zmq.maximum_subscriptions",
1710
        setting<uint32_t>(&configured.server.zmq.maximum_subscriptions),
34 ✔
1711
        "The maximum topic subscriptions per connection, defaults to {}."
1712
    )
1713
    (
102 ✔
1714
        "zmq.key",
1715
        secret<config::base85>(&configured.server.zmq.key),
34 ✔
1716
        "The Z85 encoded CurveZMQ server secret key, defaults to none (unencrypted)."
1717
    )
1718

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

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

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

2333
    /* [stratum_v2] */
2334
    (
2335
        "stratum_v2.bind",
2336
        setting<network::config::authorities>(&configured.server.stratum_v2.binds),
2337
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
2338
    )
2339
    (
2340
        "stratum_v2.connections",
2341
        setting<uint16_t>(&configured.server.stratum_v2.connections),
2342
        "The required maximum number of connections, defaults to {}."
2343
    )
2344
    (
2345
        "stratum_v2.rate_limit",
2346
        setting<uint32_t>(&configured.server.stratum_v2.rate_limit),
2347
        "The send rate limit in bytes per second, defaults to {} (network controls)."
2348
    )
2349
    (
2350
        "stratum_v2.connect_timeout_seconds",
2351
        setting<uint32_t>(&configured.server.stratum_v2.connect_timeout_seconds),
2352
        "The time limit for connection establishment, defaults to {} (network controls)."
2353
    )
2354
    (
2355
        "stratum_v2.inactivity_minutes",
2356
        setting<uint32_t>(&configured.server.stratum_v2.inactivity_minutes),
2357
        "The idle timeout (http keep-alive), defaults to {}."
2358
    )
2359
    (
2360
        "stratum_v2.expiration_minutes",
2361
        setting<uint32_t>(&configured.server.stratum_v2.expiration_minutes),
2362
        "The maximum connection duration, defaults to {}."
2363
    )
2364
    (
2365
        "stratum_v2.minimum_buffer",
2366
        setting<uint32_t>(&configured.server.stratum_v2.minimum_buffer),
2367
        "The minimum retained read buffer size, defaults to {}."
2368
    )
2369
    (
2370
        "stratum_v2.maximum_backlog",
2371
        setting<uint32_t>(&configured.server.stratum_v2.maximum_backlog),
2372
        "The maximum write backlog of a channel, defaults to {}."
2373
    )
2374
    (
2375
        "stratum_v2.maximum_request",
2376
        setting<uint32_t>(&configured.server.stratum_v2.maximum_request),
2377
        "The maximum allowed request size, defaults to {}."
2378
    )
2379

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

2513
    /* [pool] */
2514
    (
102 ✔
2515
        "pool.minimum_fee_rate",
2516
        setting<double>(&configured.node.pool.minimum_fee_rate),
34 ✔
2517
        "Minimum fee rate for non-conflicting tx acceptance, defaults to {}."
2518
    )
2519
    (
102 ✔
2520
        "pool.maximum_outcomes",
2521
        setting<uint32_t>(&configured.node.pool.maximum_outcomes),
34 ✔
2522
        "Maximum conflict outcomes evaluated to accept a transaction, defaults to {}."
2523
    )
2524
    (
102 ✔
2525
        "pool.bytes_per_sigop",
2526
        setting<uint32_t>(&configured.node.pool.bytes_per_sigop),
34 ✔
2527
        "Virtual bytes charged per signature operation, defaults to {}."
2528
    )
2529
    (
102 ✔
2530
        "pool.coinbase_weight",
2531
        setting<uint32_t>(&configured.node.pool.coinbase_weight),
34 ✔
2532
        "Declared weight of the miner's coinbase transaction, defaults to {}."
2533
    )
2534
    (
102 ✔
2535
        "pool.maximum_chunk_depth",
2536
        setting<uint32_t>(&configured.node.pool.maximum_chunk_depth),
34 ✔
2537
        "Maximum ancestor depth of a block template chunk, defaults to {}."
2538
    )
2539

2540
    /* [database] */
2541
    (
102 ✔
2542
        "database.turbo",
2543
        setting<bool>(&configured.database.turbo),
34 ✔
2544
        "Allow individual non-validation queries to use all CPUs, defaults to {}."
2545
    )
2546
    (
102 ✔
2547
        "database.cold_reads",
2548
        setting<uint16_t>(&configured.database.cold_reads),
34 ✔
2549
        "Limit of concurrent prefetched block reads from disk, defaults to {} (0 unlimited)."
2550
    )
2551
    (
102 ✔
2552
        "database.memory_reserve",
2553
        setting<uint64_t>(&configured.database.memory_reserve),
34 ✔
2554
        "Bytes of unused memory restored by cache release when current, defaults to {} (0 disables)."
2555
    )
2556
    (
102 ✔
2557
        "database.memory_ceiling",
2558
        setting<uint64_t>(&configured.database.memory_ceiling),
34 ✔
2559
        "Bytes of process memory above which cache is released when current, defaults to {} (0 disables)."
2560
    )
2561
    (
102 ✔
2562
        "database.gpu_scan_minimum",
2563
        setting<uint32_t>(&configured.database.gpu_scan_minimum),
34 ✔
2564
        "Minimum transactions for a silent payment scan to use the GPU, defaults to {}."
2565
    )
2566
    (
102 ✔
2567
        "database.mark_unconfirmable",
2568
        setting<bool>(&configured.database.mark_unconfirmable),
34 ✔
2569
        "Save unconfirmable block state (prevents revalidation), defaults to {}."
2570
    )
2571
    (
102 ✔
2572
        "database.interval_depth",
2573
        setting<uint8_t>(&configured.database.interval_depth),
34 ✔
2574
        "The interval depth for merkle proof optimization, defaults to {}."
2575
    )
2576

2577
    /* [table.*] */
2578

2579
    /* table.header */
2580
    (
102 ✔
2581
        "table.header.buckets",
2582
        setting<uint32_t>(&configured.database.header.buckets),
34 ✔
2583
        "The number of buckets in the header table head, derived from expected and memory, defaults to {}."
2584
    )
2585
    (
102 ✔
2586
        "table.header.expected",
2587
        setting<uint64_t>(&configured.database.header.expected),
34 ✔
2588
        "The expected element count of the header table, defaults to {}."
2589
    )
2590
    (
102 ✔
2591
        "table.header.size",
2592
        setting<uint64_t>(&configured.database.header.size),
34 ✔
2593
        "The minimum allocation of the header table body, defaults to {}."
2594
    )
2595
    (
102 ✔
2596
        "table.header.rate",
2597
        setting<uint16_t>(&configured.database.header.rate),
34 ✔
2598
        "The percentage expansion of the header table body, defaults to {}."
2599
    )
2600

2601
    /* table.input */
2602
    (
102 ✔
2603
        "table.input.size",
2604
        setting<uint64_t>(&configured.database.input.size),
34 ✔
2605
        "The minimum allocation of the input table body, defaults to {}."
2606
    )
2607
    (
102 ✔
2608
        "table.input.rate",
2609
        setting<uint16_t>(&configured.database.input.rate),
34 ✔
2610
        "The percentage expansion of the input table body, defaults to {}."
2611
    )
2612

2613
    /* table.output */
2614
    (
102 ✔
2615
        "table.output.size",
2616
        setting<uint64_t>(&configured.database.output.size),
34 ✔
2617
        "The minimum allocation of the output table body, defaults to {}."
2618
    )
2619
    (
102 ✔
2620
        "table.output.rate",
2621
        setting<uint16_t>(&configured.database.output.rate),
34 ✔
2622
        "The percentage expansion of the output table body, defaults to {}."
2623
    )
2624

2625
    /* table.ins */
2626
    (
102 ✔
2627
        "table.ins.buckets",
2628
        setting<uint32_t>(&configured.database.ins.buckets),
34 ✔
2629
        "The number of buckets in the ins table head, derived from expected and memory, defaults to {}."
2630
    )
2631
    (
102 ✔
2632
        "table.ins.expected",
2633
        setting<uint64_t>(&configured.database.ins.expected),
34 ✔
2634
        "The expected element count of the ins table, defaults to {}."
2635
    )
2636
    (
102 ✔
2637
        "table.ins.size",
2638
        setting<uint64_t>(&configured.database.ins.size),
34 ✔
2639
        "The minimum allocation of the ins table body, defaults to {}."
2640
    )
2641
    (
102 ✔
2642
        "table.ins.rate",
2643
        setting<uint16_t>(&configured.database.ins.rate),
34 ✔
2644
        "The percentage expansion of the ins table body, defaults to {}."
2645
    )
2646

2647
    /* table.outs */
2648
    (
102 ✔
2649
        "table.outs.buckets",
2650
        setting<uint32_t>(&configured.database.outs.buckets),
34 ✔
2651
        "The number of buckets in the outs table head, derived from expected and memory, defaults to {} (0 disables address index)."
2652
    )
2653
    (
102 ✔
2654
        "table.outs.expected",
2655
        setting<uint64_t>(&configured.database.outs.expected),
34 ✔
2656
        "The expected element count of the outs table, defaults to {}."
2657
    )
2658
    (
102 ✔
2659
        "table.outs.size",
2660
        setting<uint64_t>(&configured.database.outs.size),
34 ✔
2661
        "The minimum allocation of the outs table body, defaults to {}."
2662
    )
2663
    (
102 ✔
2664
        "table.outs.rate",
2665
        setting<uint16_t>(&configured.database.outs.rate),
34 ✔
2666
        "The percentage expansion of the outs table body, defaults to {}."
2667
    )
2668

2669
    /* table.tx */
2670
    (
102 ✔
2671
        "table.tx.buckets",
2672
        setting<uint32_t>(&configured.database.tx.buckets),
34 ✔
2673
        "The number of buckets in the tx table head, derived from expected and memory, defaults to {}."
2674
    )
2675
    (
102 ✔
2676
        "table.tx.expected",
2677
        setting<uint64_t>(&configured.database.tx.expected),
34 ✔
2678
        "The expected element count of the tx table, defaults to {}."
2679
    )
2680
    (
102 ✔
2681
        "table.tx.size",
2682
        setting<uint64_t>(&configured.database.tx.size),
34 ✔
2683
        "The minimum allocation of the tx table body, defaults to {}."
2684
    )
2685
    (
102 ✔
2686
        "table.tx.rate",
2687
        setting<uint16_t>(&configured.database.tx.rate),
34 ✔
2688
        "The percentage expansion of the tx table body, defaults to {}."
2689
    )
2690

2691
    /* table.txs */
2692
    (
102 ✔
2693
        "table.txs.buckets",
2694
        setting<uint32_t>(&configured.database.txs.buckets),
34 ✔
2695
        "The number of buckets in the txs table head, defaults to {}."
2696
    )
2697
    (
102 ✔
2698
        "table.txs.size",
2699
        setting<uint64_t>(&configured.database.txs.size),
34 ✔
2700
        "The minimum allocation of the txs table body, defaults to {}."
2701
    )
2702
    (
102 ✔
2703
        "table.txs.rate",
2704
        setting<uint16_t>(&configured.database.txs.rate),
34 ✔
2705
        "The percentage expansion of the txs table body, defaults to {}."
2706
    )
2707

2708
    /* table.candidate */
2709
    (
102 ✔
2710
        "table.candidate.buckets",
2711
        setting<uint32_t>(&configured.database.candidate.buckets),
34 ✔
2712
        "The number of buckets provisioned in the candidate table head, defaults to {}."
2713
    )
2714
    (
102 ✔
2715
        "table.candidate.rate",
2716
        setting<uint16_t>(&configured.database.candidate.rate),
34 ✔
2717
        "The percentage expansion of the candidate table head, defaults to {}."
2718
    )
2719

2720
    /* table.confirmed */
2721
    (
102 ✔
2722
        "table.confirmed.buckets",
2723
        setting<uint32_t>(&configured.database.confirmed.buckets),
34 ✔
2724
        "The number of buckets provisioned in the confirmed table head, defaults to {}."
2725
    )
2726
    (
102 ✔
2727
        "table.confirmed.rate",
2728
        setting<uint16_t>(&configured.database.confirmed.rate),
34 ✔
2729
        "The percentage expansion of the confirmed table head, defaults to {}."
2730
    )
2731

2732
    /* table.strong */
2733
    (
102 ✔
2734
        "table.strong.buckets",
2735
        setting<uint32_t>(&configured.database.strong.buckets),
34 ✔
2736
        "The number of buckets provisioned in the strong table head, derived from tx expected, defaults to {}."
2737
    )
2738
    (
102 ✔
2739
        "table.strong.rate",
2740
        setting<uint16_t>(&configured.database.strong.rate),
34 ✔
2741
        "The percentage expansion of the strong table head, defaults to {}."
2742
    )
2743

2744
    /* table.scan */
2745
    (
102 ✔
2746
        "table.scan.buckets",
2747
        setting<uint32_t>(&configured.database.scan.buckets),
34 ✔
2748
        "The number of buckets provisioned in the scan table head, defaults to {}."
2749
    )
2750
    (
102 ✔
2751
        "table.scan.size",
2752
        setting<uint64_t>(&configured.database.scan.size),
34 ✔
2753
        "The minimum allocation of the scan table body, defaults to {}."
2754
    )
2755
    (
102 ✔
2756
        "table.scan.rate",
2757
        setting<uint16_t>(&configured.database.scan.rate),
34 ✔
2758
        "The percentage expansion of the scan table body, defaults to {}."
2759
    )
2760

2761
    /* table.wtxid */
2762
    (
102 ✔
2763
        "table.wtxid.buckets",
2764
        setting<uint32_t>(&configured.database.wtxid.buckets),
34 ✔
2765
        "The number of buckets in the wtxid table head, derived from expected and memory, defaults to {} (0 disables)."
2766
    )
2767
    (
102 ✔
2768
        "table.wtxid.expected",
2769
        setting<uint64_t>(&configured.database.wtxid.expected),
34 ✔
2770
        "The expected element count of the wtxid table, defaults to {}."
2771
    )
2772
    (
102 ✔
2773
        "table.wtxid.size",
2774
        setting<uint64_t>(&configured.database.wtxid.size),
34 ✔
2775
        "The minimum allocation of the wtxid table body, defaults to {}."
2776
    )
2777
    (
102 ✔
2778
        "table.wtxid.rate",
2779
        setting<uint16_t>(&configured.database.wtxid.rate),
34 ✔
2780
        "The percentage expansion of the wtxid table body, defaults to {}."
2781
    )
2782

2783
    /* table.ecdsa */
2784
    (
102 ✔
2785
        "table.ecdsa.size",
2786
        setting<uint64_t>(&configured.database.ecdsa.size),
34 ✔
2787
        "The minimum allocation of each batch_ecdsa table body, defaults to {}."
2788
    )
2789
    (
102 ✔
2790
        "table.ecdsa.rate",
2791
        setting<uint16_t>(&configured.database.ecdsa.rate),
34 ✔
2792
        "The percentage expansion of each batch_ecdsa table body, defaults to {}."
2793
    )
2794

2795
    /* table.schnorr */
2796
    (
102 ✔
2797
        "table.schnorr.size",
2798
        setting<uint64_t>(&configured.database.schnorr.size),
34 ✔
2799
        "The minimum allocation of each batch_schnorr table body, defaults to {}."
2800
    )
2801
    (
102 ✔
2802
        "table.schnorr.rate",
2803
        setting<uint16_t>(&configured.database.schnorr.rate),
34 ✔
2804
        "The percentage expansion of each batch_schnorr table body, defaults to {}."
2805
    )
2806

2807
    /* table.silent */
2808
    (
102 ✔
2809
        "table.silent.size",
2810
        setting<uint64_t>(&configured.database.silent.size),
34 ✔
2811
        "The minimum allocation of each batch_silent table body, defaults to {}."
2812
    )
2813
    (
102 ✔
2814
        "table.silent.rate",
2815
        setting<uint16_t>(&configured.database.silent.rate),
34 ✔
2816
        "The percentage expansion of each batch_silent table body, defaults to {}."
2817
    )
2818

2819
    /* table.prevalid */
2820
    (
102 ✔
2821
        "table.prevalid.size",
2822
        setting<uint64_t>(&configured.database.prevalid.size),
34 ✔
2823
        "The minimum allocation of each batch_prevalid table body, defaults to {}."
2824
    )
2825
    (
102 ✔
2826
        "table.prevalid.rate",
2827
        setting<uint16_t>(&configured.database.prevalid.rate),
34 ✔
2828
        "The percentage expansion of each batch_prevalid table body, defaults to {}."
2829
    )
2830

2831
    /* table.presilent */
2832
    (
102 ✔
2833
        "table.presilent.size",
2834
        setting<uint64_t>(&configured.database.presilent.size),
34 ✔
2835
        "The minimum allocation of each batch_presilent table body, defaults to {}."
2836
    )
2837
    (
102 ✔
2838
        "table.presilent.rate",
2839
        setting<uint16_t>(&configured.database.presilent.rate),
34 ✔
2840
        "The percentage expansion of each batch_presilent table body, defaults to {}."
2841
    )
2842

2843
    /* table.prevout */
2844
    (
102 ✔
2845
        "table.prevout.buckets",
2846
        setting<uint32_t>(&configured.database.prevout.buckets),
34 ✔
2847
        "The minimum number of buckets in the prevout table head, defaults to {}."
2848
    )
2849
    (
102 ✔
2850
        "table.prevout.size",
2851
        setting<uint64_t>(&configured.database.prevout.size),
34 ✔
2852
        "The minimum allocation of the prevout table body, defaults to {}."
2853
    )
2854
    (
102 ✔
2855
        "table.prevout.rate",
2856
        setting<uint16_t>(&configured.database.prevout.rate),
34 ✔
2857
        "The percentage expansion of the prevout table, defaults to {}."
2858
    )
2859

2860
    /* table.duplicate */
2861
    (
102 ✔
2862
        "table.duplicate.buckets",
2863
        setting<uint32_t>(&configured.database.duplicate.buckets),
34 ✔
2864
        "The minimum number of buckets in the duplicate table head, defaults to {}."
2865
    )
2866
    (
102 ✔
2867
        "table.duplicate.expected",
2868
        setting<uint64_t>(&configured.database.duplicate.expected),
34 ✔
2869
        "The expected element count of the duplicate table, defaults to {}."
2870
    )
2871
    (
102 ✔
2872
        "table.duplicate.size",
2873
        setting<uint64_t>(&configured.database.duplicate.size),
34 ✔
2874
        "The minimum allocation of the duplicate table body, defaults to {}."
2875
    )
2876
    (
102 ✔
2877
        "table.duplicate.rate",
2878
        setting<uint16_t>(&configured.database.duplicate.rate),
34 ✔
2879
        "The percentage expansion of the duplicate table, defaults to {}."
2880
    )
2881

2882
    /* table.state */
2883
    (
102 ✔
2884
        "table.state.buckets",
2885
        setting<uint32_t>(&configured.database.state.buckets),
34 ✔
2886
        "The number of buckets provisioned in the state table head, defaults to {}."
2887
    )
2888
    (
102 ✔
2889
        "table.state.rate",
2890
        setting<uint16_t>(&configured.database.state.rate),
34 ✔
2891
        "The percentage expansion of the state table head, defaults to {}."
2892
    )
2893

2894
    /* table.pool */
2895
    (
102 ✔
2896
        "table.pool.buckets",
2897
        setting<uint32_t>(&configured.database.pool.buckets),
34 ✔
2898
        "The number of buckets in the pool table head, derived from expected and memory, defaults to {} (0 disables)."
2899
    )
2900
    (
102 ✔
2901
        "table.pool.expected",
2902
        setting<uint64_t>(&configured.database.pool.expected),
34 ✔
2903
        "The expected element count of the pool table, defaults to {}."
2904
    )
2905
    (
102 ✔
2906
        "table.pool.size",
2907
        setting<uint64_t>(&configured.database.pool.size),
34 ✔
2908
        "The minimum allocation of the pool table body, defaults to {}."
2909
    )
2910
    (
102 ✔
2911
        "table.pool.rate",
2912
        setting<uint16_t>(&configured.database.pool.rate),
34 ✔
2913
        "The percentage expansion of the pool table body, defaults to {}."
2914
    )
2915

2916
    /* table.spends */
2917
    (
102 ✔
2918
        "table.spends.size",
2919
        setting<uint64_t>(&configured.database.spends.size),
34 ✔
2920
        "The minimum allocation of the spends table body, defaults to {}."
2921
    )
2922
    (
102 ✔
2923
        "table.spends.rate",
2924
        setting<uint16_t>(&configured.database.spends.rate),
34 ✔
2925
        "The percentage expansion of the spends table body, defaults to {}."
2926
    )
2927

2928
    /* table.filter_bk */
2929
    (
102 ✔
2930
        "table.filter_bk.buckets",
2931
        setting<uint32_t>(&configured.database.filter_bk.buckets),
34 ✔
2932
        "The number of buckets in the filter_bk table head, defaults to {}."
2933
    )
2934
    (
102 ✔
2935
        "table.filter_bk.size",
2936
        setting<uint64_t>(&configured.database.filter_bk.size),
34 ✔
2937
        "The minimum allocation of the filter_bk table body, defaults to {}."
2938
    )
2939
    (
102 ✔
2940
        "table.filter_bk.rate",
2941
        setting<uint16_t>(&configured.database.filter_bk.rate),
34 ✔
2942
        "The percentage expansion of the filter_bk table body, defaults to {}."
2943
    )
2944

2945
    /* table.filter_tx */
2946
    (
102 ✔
2947
        "table.filter_tx.buckets",
2948
        setting<uint32_t>(&configured.database.filter_tx.buckets),
34 ✔
2949
        "The number of buckets in the filter_tx table head, defaults to {}."
2950
    )
2951
    (
102 ✔
2952
        "table.filter_tx.size",
2953
        setting<uint64_t>(&configured.database.filter_tx.size),
34 ✔
2954
        "The minimum allocation of the filter_tx table body, defaults to {}."
2955
    )
2956
    (
102 ✔
2957
        "table.filter_tx.rate",
2958
        setting<uint16_t>(&configured.database.filter_tx.rate),
34 ✔
2959
        "The percentage expansion of the filter_tx table body, defaults to {}."
2960
    )
2961

2962
    /* [log] */
2963
#if defined(HAVE_LOGA)
2964
    (
102 ✔
2965
        "log.application",
2966
        setting<bool>(&configured.log.application),
34 ✔
2967
        "Enable application logging, defaults to {}."
2968
    )
2969
#endif
2970
#if defined(HAVE_LOGN)
2971
    (
102 ✔
2972
        "log.news",
2973
        setting<bool>(&configured.log.news),
34 ✔
2974
        "Enable news logging, defaults to {}."
2975
    )
2976
#endif
2977
#if defined(HAVE_LOGS)
2978
    (
102 ✔
2979
        "log.session",
2980
        setting<bool>(&configured.log.session),
34 ✔
2981
        "Enable session logging, defaults to {}."
2982
    )
2983
#endif
2984
#if defined(HAVE_LOGP)
2985
    (
102 ✔
2986
        "log.protocol",
2987
        setting<bool>(&configured.log.protocol),
34 ✔
2988
        "Enable protocol logging, defaults to {}."
2989
    )
2990
#endif
2991
#if defined(HAVE_LOGX)
2992
    (
102 ✔
2993
        "log.proxy",
2994
        setting<bool>(&configured.log.proxy),
34 ✔
2995
        "Enable proxy logging, defaults to {}."
2996
    )
2997
#endif
2998
#if defined(HAVE_LOGR)
2999
    (
102 ✔
3000
        "log.remote",
3001
        setting<bool>(&configured.log.remote),
34 ✔
3002
        "Enable remote fault logging, defaults to {}."
3003
    )
3004
#endif
3005
#if defined(HAVE_LOGF)
3006
    (
102 ✔
3007
        "log.fault",
3008
        setting<bool>(&configured.log.fault),
34 ✔
3009
        "Enable local fault logging, defaults to {}."
3010
    )
3011
#endif
3012
#if defined(HAVE_LOGQ)
3013
    (
102 ✔
3014
        "log.quitting",
3015
        setting<bool>(&configured.log.quitting),
34 ✔
3016
        "Enable quitting logging, defaults to {}."
3017
    )
3018
#endif
3019
#if defined(HAVE_LOGO)
3020
    (
102 ✔
3021
        "log.objects",
3022
        setting<bool>(&configured.log.objects),
34 ✔
3023
        "Enable objects logging, defaults to {}."
3024
    )
3025
#endif
3026
#if defined(HAVE_LOGV)
3027
    (
102 ✔
3028
        "log.verbose",
3029
        setting<bool>(&configured.log.verbose),
34 ✔
3030
        "Enable verbose logging, defaults to {}."
3031
    )
3032
#endif
3033
    (
102 ✔
3034
        "log.console",
3035
        setting<bool>(&configured.log.console),
34 ✔
3036
        "Write the console log to a pair of rotated log files, defaults to {}."
3037
    )
3038
    (
102 ✔
3039
        "log.limit",
3040
        setting<uint32_t>(&configured.log.limit),
34 ✔
3041
        "The maximum byte size of each pair of rotated log files, defaults to {}."
3042
    )
3043
    (
102 ✔
3044
        "log.events",
3045
        setting<bool>(&configured.log.events),
34 ✔
3046
        "Write events to the events log file, defaults to {}."
3047
    )
3048
    (
68 ✔
3049
        "log.thread_priority",
3050
        setting<bool>(&configured.log.thread_priority),
34 ✔
3051
        "Set the log thread to normal processing priority, defaults to {}."
3052
    );
3053

3054
    return description;
34 ✔
UNCOV
3055
}
×
3056

3057
BC_PUSH_WARNING(NO_ARRAY_TO_POINTER_DECAY)
3058
bool parser::parse(int argc, const char* argv[], std::ostream& error) THROWS
36 ✔
3059
BC_POP_WARNING()
3060
{
3061
    try
3062
    {
3063
        auto file = false;
3064
        load_command_variables(argc, argv);
36 ✔
3065
        ////load_environment_variables(environment_prefix);
3066

3067
        // Don't load config file if help is specified.
3068
        if (!get_option(help_variable))
34 ✔
3069
        {
3070
            // Returns true if the settings were loaded from a file.
3071
            file = load_configuration_variables(config_variable);
34 ✔
3072
        }
3073

3074
        // Update bound variables in metadata.settings.
3075
        notify(variables_);
34 ✔
3076
        select_network();
34 ✔
3077
        select_root();
34 ✔
3078
        select_paths();
34 ✔
3079
        derive_buckets();
34 ✔
3080

3081
        // Clear the config file path if it wasn't used.
3082
        if (!file)
34 ✔
3083
            configured.file = {};
7 ✔
3084
    }
3085
    catch (const option_exception& e)
2 ✔
3086
    {
3087
        error << format_invalid_parameter(e.what()) << std::endl;
2 ✔
3088
        return false;
3089
    }
2 ✔
3090

3091
    return true;
3092
}
3093

3094
} // namespace server
3095
} // 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