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

libbitcoin / libbitcoin-server / 45096939718

23 Nov 2026 01:51AM UTC coverage: 93.468% (+0.008%) from 93.46%
45096939718

push

github

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

Updated settings, embed page fix, help text.

40 of 41 new or added lines in 7 files covered. (97.56%)

122 existing lines in 14 files now uncovered.

13436 of 14375 relevant lines covered (93.47%)

461.19 hits per line

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

99.16
/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
// Specified network governs, otherwise configuration,
88
// otherwise network 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
// Network of existing store governs at its path, for commands that use store.
168
void parser::read_envelope() NOEXCEPT
4 ✔
169
{
170
    if (configured.make || configured.help || configured.hardware ||
4 ✔
171
        configured.daemon.has_value())
3 ✔
172
        return;
2 ✔
173

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

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

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

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

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

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

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

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

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

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

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

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

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

376
    return description;
36 ✔
UNCOV
377
}
×
378

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

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

UNCOV
399
    return description;
×
400
}
×
401

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

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

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

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

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

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

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

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

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

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

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

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

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

1716
    /* [zmq] */
1717
    (
102 ✔
1718
        "zmq.bind",
1719
        setting<network::config::authorities>(&configured.server.zmq.binds),
34 ✔
1720
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
1721
    )
1722
    (
102 ✔
1723
        "zmq.safe",
1724
        setting<network::config::authorities>(&configured.server.zmq.safes),
34 ✔
1725
        "IP address to secure (CurveZMQ) bind, multiple allowed, defaults to {} (disabled)."
1726
    )
1727
    (
102 ✔
1728
        "zmq.cert",
1729
        setting<std::vector<config::base85>>(&configured.server.zmq.certs),
34 ✔
1730
        "The Z85 encoded public key of an authorized client, multiple allowed, defaults to {} (all)."
1731
    )
1732
    (
102 ✔
1733
        "zmq.connections",
1734
        setting<uint16_t>(&configured.server.zmq.connections),
34 ✔
1735
        "The required maximum number of connections, defaults to {}."
1736
    )
1737
    (
102 ✔
1738
        "zmq.rate_limit",
1739
        setting<uint32_t>(&configured.server.zmq.rate_limit),
34 ✔
1740
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1741
    )
1742
    (
102 ✔
1743
        "zmq.connect_timeout_seconds",
1744
        setting<uint32_t>(&configured.server.zmq.connect_timeout_seconds),
34 ✔
1745
        "The time limit for connection establishment, defaults to {} (network controls)."
1746
    )
1747
    (
102 ✔
1748
        "zmq.minimum_buffer",
1749
        setting<uint32_t>(&configured.server.zmq.minimum_buffer),
34 ✔
1750
        "The minimum retained read buffer size, defaults to {}."
1751
    )
1752
    (
102 ✔
1753
        "zmq.maximum_backlog",
1754
        setting<uint32_t>(&configured.server.zmq.maximum_backlog),
34 ✔
1755
        "The maximum write backlog of a channel, defaults to {}."
1756
    )
1757
    (
102 ✔
1758
        "zmq.maximum_request",
1759
        setting<uint32_t>(&configured.server.zmq.maximum_request),
34 ✔
1760
        "The maximum allowed request size, defaults to {}."
1761
    )
1762
    (
102 ✔
1763
        "zmq.maximum_subscriptions",
1764
        setting<uint32_t>(&configured.server.zmq.maximum_subscriptions),
34 ✔
1765
        "The maximum topic subscriptions per connection, defaults to {}."
1766
    )
1767
    (
102 ✔
1768
        "zmq.key",
1769
        secret<config::base85>(&configured.server.zmq.key),
34 ✔
1770
        "The Z85 encoded CurveZMQ server secret key, defaults to none (unencrypted)."
1771
    )
1772

1773
    /* [btcd] */
1774
    (
102 ✔
1775
        "btcd.bind",
1776
        setting<network::config::authorities>(&configured.server.btcd.binds),
34 ✔
1777
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
1778
    )
1779
    (
102 ✔
1780
        "btcd.safe",
1781
        setting<network::config::authorities>(&configured.server.btcd.safes),
34 ✔
1782
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
1783
    )
1784
    (
102 ✔
1785
        "btcd.cert_auth",
1786
        setting<config::path>(&configured.server.btcd.cert_auth),
34 ✔
1787
        "The trusted client certificate directory (*.PEM), enables client authentication."
1788
    )
1789
    (
102 ✔
1790
        "btcd.cert_path",
1791
        setting<config::path>(&configured.server.btcd.cert_path),
34 ✔
1792
        "The path to the server certificate file (.PEM), defaults to {}."
1793
    )
1794
    (
102 ✔
1795
        "btcd.key_path",
1796
        setting<config::path>(&configured.server.btcd.key_path),
34 ✔
1797
        "The path to the server private key file (.PEM), defaults to {}."
1798
    )
1799
    (
102 ✔
1800
        "btcd.key_pass",
1801
        secret<std::string>(&configured.server.btcd.key_pass),
34 ✔
1802
        "The password to decrypt the server private key file (.PEM), optional."
1803
    )
1804
    (
102 ✔
1805
        "btcd.credential",
1806
        secret<network::config::credentials>(&configured.server.btcd.credentials),
34 ✔
1807
        "The 'username:password[:method,...]' authorization (not secure), multiple allowed."
1808
    )
1809
    (
102 ✔
1810
        "btcd.connections",
1811
        setting<uint16_t>(&configured.server.btcd.connections),
34 ✔
1812
        "The required maximum number of connections, defaults to {}."
1813
    )
1814
    (
102 ✔
1815
        "btcd.rate_limit",
1816
        setting<uint32_t>(&configured.server.btcd.rate_limit),
34 ✔
1817
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1818
    )
1819
    (
102 ✔
1820
        "btcd.connect_timeout_seconds",
1821
        setting<uint32_t>(&configured.server.btcd.connect_timeout_seconds),
34 ✔
1822
        "The time limit for connection establishment, defaults to {} (network controls)."
1823
    )
1824
    (
102 ✔
1825
        "btcd.inactivity_minutes",
1826
        setting<uint32_t>(&configured.server.btcd.inactivity_minutes),
34 ✔
1827
        "The idle timeout (http/ws keep-alive), defaults to {}."
1828
    )
1829
    (
102 ✔
1830
        "btcd.expiration_minutes",
1831
        setting<uint32_t>(&configured.server.btcd.expiration_minutes),
34 ✔
1832
        "The maximum connection duration, defaults to {}."
1833
    )
1834
    (
102 ✔
1835
        "btcd.minimum_buffer",
1836
        setting<uint32_t>(&configured.server.btcd.minimum_buffer),
34 ✔
1837
        "The minimum retained read buffer size, defaults to {}."
1838
    )
1839
    (
102 ✔
1840
        "btcd.maximum_backlog",
1841
        setting<uint32_t>(&configured.server.btcd.maximum_backlog),
34 ✔
1842
        "The maximum write backlog of a channel, defaults to {}."
1843
    )
1844
    (
102 ✔
1845
        "btcd.maximum_buffer",
1846
        setting<uint32_t>(&configured.server.btcd.maximum_buffer),
34 ✔
1847
        "The maximum json response buffer size, defaults to {}."
1848
    )
1849
    (
102 ✔
1850
        "btcd.maximum_request",
1851
        setting<uint32_t>(&configured.server.btcd.maximum_request),
34 ✔
1852
        "The maximum allowed request size, defaults to {}."
1853
    )
1854
    (
102 ✔
1855
        "btcd.server",
1856
        setting<std::string>(&configured.server.btcd.server),
34 ✔
1857
        "The server name (http header), defaults to {}."
1858
    )
1859
    (
102 ✔
1860
        "btcd.maximum_filters",
1861
        setting<uint32_t>(&configured.server.btcd.maximum_filters),
34 ✔
1862
        "The maximum number of loadtxfilter watches, defaults to {}."
1863
    )
1864
    (
102 ✔
1865
        "btcd.maximum_history",
1866
        setting<uint32_t>(&configured.server.btcd.maximum_history),
34 ✔
1867
        "The maximum number of address history entries, defaults to {}."
1868
    )
1869
    (
102 ✔
1870
        "btcd.host",
1871
        setting<network::config::endpoints>(&configured.server.btcd.hosts),
34 ✔
1872
        "The host name (http verification), multiple allowed, defaults to {} (disabled)."
1873
    )
1874
    (
102 ✔
1875
        "btcd.origin",
1876
        setting<network::config::endpoints>(&configured.server.btcd.origins),
34 ✔
1877
        "The allowed origin (see CORS), multiple allowed, defaults to {} (disabled)."
1878
    )
1879
    (
102 ✔
1880
        "btcd.allow_opaque_origin",
1881
        setting<bool>(&configured.server.btcd.allow_opaque_origin),
34 ✔
1882
        "Allow requests from opaque origin (see CORS), defaults to {}."
1883
    )
1884
    (
102 ✔
1885
        "btcd.compression",
1886
        setting<bool>(&configured.server.btcd.compression),
34 ✔
1887
        "Compress response bodies as accepted by the request (gzip, deflate), defaults to {}."
1888
    )
1889
    (
102 ✔
1890
        "btcd.enable_utxo",
1891
        setting<bool>(&configured.server.btcd.enable_utxo),
34 ✔
1892
        "Enable utxo set queries, disabling connection timeouts, defaults to {}."
1893
    )
1894

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

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

2392
    /* [stratum_v2] */
2393
    (
2394
        "stratum_v2.bind",
2395
        setting<network::config::authorities>(&configured.server.stratum_v2.binds),
2396
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
2397
    )
2398
    (
2399
        "stratum_v2.connections",
2400
        setting<uint16_t>(&configured.server.stratum_v2.connections),
2401
        "The required maximum number of connections, defaults to {}."
2402
    )
2403
    (
2404
        "stratum_v2.rate_limit",
2405
        setting<uint32_t>(&configured.server.stratum_v2.rate_limit),
2406
        "The send rate limit in bytes per second, defaults to {} (network controls)."
2407
    )
2408
    (
2409
        "stratum_v2.connect_timeout_seconds",
2410
        setting<uint32_t>(&configured.server.stratum_v2.connect_timeout_seconds),
2411
        "The time limit for connection establishment, defaults to {} (network controls)."
2412
    )
2413
    (
2414
        "stratum_v2.inactivity_minutes",
2415
        setting<uint32_t>(&configured.server.stratum_v2.inactivity_minutes),
2416
        "The idle timeout (http keep-alive), defaults to {}."
2417
    )
2418
    (
2419
        "stratum_v2.expiration_minutes",
2420
        setting<uint32_t>(&configured.server.stratum_v2.expiration_minutes),
2421
        "The maximum connection duration, defaults to {}."
2422
    )
2423
    (
2424
        "stratum_v2.minimum_buffer",
2425
        setting<uint32_t>(&configured.server.stratum_v2.minimum_buffer),
2426
        "The minimum retained read buffer size, defaults to {}."
2427
    )
2428
    (
2429
        "stratum_v2.maximum_backlog",
2430
        setting<uint32_t>(&configured.server.stratum_v2.maximum_backlog),
2431
        "The maximum write backlog of a channel, defaults to {}."
2432
    )
2433
    (
2434
        "stratum_v2.maximum_request",
2435
        setting<uint32_t>(&configured.server.stratum_v2.maximum_request),
2436
        "The maximum allowed request size, defaults to {}."
2437
    )
2438

2439
#endif
2440
    /* [node] */
2441
    (
102 ✔
2442
        "node.threads",
2443
        setting<uint32_t>(&configured.node.threads),
34 ✔
2444
        "The number of threads in the validation threadpool, defaults to {} (hardware threads)."
2445
    )
2446
    (
102 ✔
2447
        "node.thread_priority",
2448
        setting<bool>(&configured.node.thread_priority),
34 ✔
2449
        "Set validation threads to high processing priority, defaults to {}."
2450
    )
2451
    (
102 ✔
2452
        "node.delay_inbound",
2453
        setting<bool>(&configured.node.delay_inbound),
34 ✔
2454
        "Block inbound peer/client (excluding admin) until current, defaults to {}."
2455
    )
2456
    (
102 ✔
2457
        "node.provide_blocks",
2458
        setting<bool>(&configured.node.provide_blocks),
34 ✔
2459
        "Serve blocks to network connections, defaults to {}."
2460
    )
2461
    (
102 ✔
2462
        "node.limited_blocks",
2463
        setting<bool>(&configured.node.limited_blocks),
34 ✔
2464
        "Limit block service to recent blocks, defaults to {}."
2465
    )
2466
    (
102 ✔
2467
        "node.require_blocks",
2468
        setting<bool>(&configured.node.require_blocks),
34 ✔
2469
        "Require block service of outbound connections, defaults to {}."
2470
    )
2471
    (
102 ✔
2472
        "node.provide_witness",
2473
        setting<bool>(&configured.node.provide_witness),
34 ✔
2474
        "Serve witness data to network connections, defaults to {}."
2475
    )
2476
    (
102 ✔
2477
        "node.require_witness",
2478
        setting<bool>(&configured.node.require_witness),
34 ✔
2479
        "Require witness service of outbound connections, defaults to {}."
2480
    )
2481
    (
102 ✔
2482
        "node.provide_filters",
2483
        setting<bool>(&configured.node.provide_filters),
34 ✔
2484
        "Serve client filters to network connections, defaults to {}."
2485
    )
2486
    (
102 ✔
2487
        "node.provide_privacy",
2488
        setting<bool>(&configured.node.provide_privacy),
34 ✔
2489
        "Provide opportunistic connection encryption, defaults to {}."
2490
    )
2491
    (
102 ✔
2492
        "node.use_gpu",
2493
        setting<bool>(&configured.node.use_gpu),
34 ✔
2494
        "Use the GPU where available, defaults to {}."
2495
    )
2496
    ////(
2497
    ////    "node.cpu_batch_verify",
2498
    ////    setting<bool>(&configured.node.cpu_batch_verify),
2499
    ////    "Batch signature verification on the CPU when the GPU is not used, defaults to {}."
2500
    ////)
2501
    ////(
2502
    ////    "node.cpu_batch_silent",
2503
    ////    setting<bool>(&configured.node.cpu_batch_silent),
2504
    ////    "Batch silent payment indexing on the CPU when the GPU is not used, defaults to {}."
2505
    ////)
2506
    (
102 ✔
2507
        "node.batch_verify",
2508
        setting<uint64_t>(&configured.node.batch_verify),
34 ✔
2509
        "Count of signatures to verify in each batch, defaults to {} (0 disables)."
2510
    )
2511
    (
102 ✔
2512
        "node.batch_silent",
2513
        setting<uint64_t>(&configured.node.batch_silent),
34 ✔
2514
        "Count of silent payment transactions to index in each batch, defaults to {} (0 disables)."
2515
    )
2516
    (
102 ✔
2517
        "node.allowed_deviation",
2518
        setting<float>(&configured.node.allowed_deviation),
34 ✔
2519
        "Allowable underperformance standard deviation, defaults to {} (0 disables)."
2520
    )
2521
    (
102 ✔
2522
        "node.maximum_height",
2523
        setting<uint32_t>(&configured.node.maximum_height),
34 ✔
2524
        "Maximum block height to populate, defaults to {} (unlimited)."
2525
    )
2526
    (
102 ✔
2527
        "node.silent_start_height",
2528
        setting<uint32_t>(&configured.node.silent_start_height),
34 ✔
2529
        "Minimum height of silent payment indexation, defaults to {}."
2530
    )
2531
    (
102 ✔
2532
        "node.maximum_concurrency",
2533
        setting<uint32_t>(&configured.node.maximum_concurrency),
34 ✔
2534
        "Maximum number of blocks to download concurrently, defaults to {} (0 disables)."
2535
    )
2536
    (
102 ✔
2537
        "node.sample_period_seconds",
2538
        setting<uint16_t>(&configured.node.sample_period_seconds),
34 ✔
2539
        "Sampling period for drop of stalled channels, defaults to {} (0 disables)."
2540
    )
2541
    (
102 ✔
2542
        "node.compact_timeout_seconds",
2543
        setting<uint16_t>(&configured.node.compact_timeout_seconds),
34 ✔
2544
        "Time to await a compact block fill before downloading the block, defaults to {} (0 disables)."
2545
    )
2546
    (
102 ✔
2547
        "node.compact_missing_percent",
2548
        setting<uint8_t>(&configured.node.compact_missing_percent),
34 ✔
2549
        "Maximum percent of a compact block not pooled to fill it, defaults to {}."
2550
    )
2551
    (
102 ✔
2552
        "node.currency_window_minutes",
2553
        setting<uint32_t>(&configured.node.currency_window_minutes),
34 ✔
2554
        "Time from present that blocks are considered current, defaults to {} (0 disables)."
2555
    )
2556
    ////(
2557
    ////    "node.snapshot_bytes",
2558
    ////    setting<uint64_t>(&configured.node.snapshot_bytes),
2559
    ////    "Downloaded bytes that triggers snapshot, defaults to {} (0 disables)."
2560
    ////)
2561
    ////(
2562
    ////    "node.snapshot_valid",
2563
    ////    setting<uint32_t>(&configured.node.snapshot_valid),
2564
    ////    "Completed validations that trigger snapshot, defaults to {} (0 disables)."
2565
    ////)
2566
    ////(
2567
    ////    "node.snapshot_confirm",
2568
    ////    setting<uint32_t>(&configured.node.snapshot_confirm),
2569
    ////    "Completed confirmations that trigger snapshot, defaults to {} (0 disables)."
2570
    ////)
2571

2572
    /* [pool] */
2573
    (
102 ✔
2574
        "pool.minimum_fee_rate",
2575
        setting<double>(&configured.node.pool.minimum_fee_rate),
34 ✔
2576
        "Minimum fee rate for non-conflicting tx acceptance, defaults to {}."
2577
    )
2578
    (
102 ✔
2579
        "pool.cutoff_rate",
2580
        setting<double>(&configured.node.pool.cutoff_rate),
34 ✔
2581
        "Fee rate on space when resolving template conflicts, defaults to {}."
2582
    )
2583
    (
102 ✔
2584
        "pool.maximum_outcomes",
2585
        setting<uint32_t>(&configured.node.pool.maximum_outcomes),
34 ✔
2586
        "Maximum conflict outcomes evaluated to accept a transaction, defaults to {}."
2587
    )
2588
    (
102 ✔
2589
        "pool.bytes_per_sigop",
2590
        setting<uint32_t>(&configured.node.pool.bytes_per_sigop),
34 ✔
2591
        "Virtual bytes charged per signature operation, defaults to {}."
2592
    )
2593
    (
102 ✔
2594
        "pool.coinbase_weight",
2595
        setting<uint32_t>(&configured.node.pool.coinbase_weight),
34 ✔
2596
        "Declared weight of the miner's coinbase transaction, defaults to {}."
2597
    )
2598
    (
102 ✔
2599
        "pool.coinbase_sigops",
2600
        setting<uint32_t>(&configured.node.pool.coinbase_sigops),
34 ✔
2601
        "Declared sigops of the miner's coinbase transaction, defaults to {}."
2602
    )
2603
    (
102 ✔
2604
        "pool.maximum_chunk_depth",
2605
        setting<uint32_t>(&configured.node.pool.maximum_chunk_depth),
34 ✔
2606
        "Maximum ancestor depth of a block template chunk, defaults to {}."
2607
    )
2608
    (
102 ✔
2609
        "pool.estimate_cache_seconds",
2610
        setting<uint16_t>(&configured.node.pool.estimate_cache_seconds),
34 ✔
2611
        "Seconds that fee estimates share a projection of the pool, defaults to {} (0 disables)."
2612
    )
2613
    (
102 ✔
2614
        "pool.estimate_room",
2615
        setting<uint32_t>(&configured.node.pool.estimate_room),
34 ✔
2616
        "Virtual bytes of block room below a fee estimate's rate, defaults to {}."
2617
    )
2618
    (
102 ✔
2619
        "pool.maximum_requests",
2620
        setting<uint32_t>(&configured.node.pool.maximum_requests),
34 ✔
2621
        "Maximum unanswered tx requests of a peer before it is dropped, defaults to {}."
2622
    )
2623
    (
102 ✔
2624
        "pool.request_timeout_seconds",
2625
        setting<uint16_t>(&configured.node.pool.request_timeout_seconds),
34 ✔
2626
        "Seconds a peer has to answer its oldest tx request, defaults to {} (0 disables)."
2627
    )
2628
    (
102 ✔
2629
        "pool.thread_priority",
2630
        setting<bool>(&configured.node.pool.thread_priority),
34 ✔
2631
        "Set the transaction pool thread to high processing priority, defaults to {}."
2632
    )
2633

2634
    /* [database] */
2635
    (
102 ✔
2636
        "database.turbo",
2637
        setting<bool>(&configured.database.turbo),
34 ✔
2638
        "Allow individual non-validation queries to use all CPUs, defaults to {}."
2639
    )
2640
    (
102 ✔
2641
        "database.cold_reads",
2642
        setting<uint16_t>(&configured.database.cold_reads),
34 ✔
2643
        "Limit of concurrent prefetched block reads from disk, defaults to {} (0 unlimited)."
2644
    )
2645
    (
102 ✔
2646
        "database.memory_reserve",
2647
        setting<uint64_t>(&configured.database.memory_reserve),
34 ✔
2648
        "Bytes of unused memory restored by cache release when current, defaults to {} (0 disables)."
2649
    )
2650
    (
102 ✔
2651
        "database.memory_ceiling",
2652
        setting<uint64_t>(&configured.database.memory_ceiling),
34 ✔
2653
        "Bytes of process memory above which cache is released when current, defaults to {} (0 disables)."
2654
    )
2655
    (
102 ✔
2656
        "database.gpu_scan_minimum",
2657
        setting<uint32_t>(&configured.database.gpu_scan_minimum),
34 ✔
2658
        "Minimum transactions for a silent payment scan to use the GPU, defaults to {}."
2659
    )
2660
    (
102 ✔
2661
        "database.mark_unconfirmable",
2662
        setting<bool>(&configured.database.mark_unconfirmable),
34 ✔
2663
        "Save unconfirmable block state (prevents revalidation), defaults to {}."
2664
    )
2665
    (
102 ✔
2666
        "database.interval_depth",
2667
        setting<uint8_t>(&configured.database.interval_depth),
34 ✔
2668
        "The interval depth for merkle proof optimization, defaults to {}."
2669
    )
2670

2671
    /* [table.*] */
2672

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

2695
    /* table.input */
2696
    (
102 ✔
2697
        "table.input.size",
2698
        setting<uint64_t>(&configured.database.input.size),
34 ✔
2699
        "The minimum allocation of the input table body, defaults to {}."
2700
    )
2701
    (
102 ✔
2702
        "table.input.rate",
2703
        setting<uint16_t>(&configured.database.input.rate),
34 ✔
2704
        "The percentage expansion of the input table body, defaults to {}."
2705
    )
2706

2707
    /* table.output */
2708
    (
102 ✔
2709
        "table.output.size",
2710
        setting<uint64_t>(&configured.database.output.size),
34 ✔
2711
        "The minimum allocation of the output table body, defaults to {}."
2712
    )
2713
    (
102 ✔
2714
        "table.output.rate",
2715
        setting<uint16_t>(&configured.database.output.rate),
34 ✔
2716
        "The percentage expansion of the output table body, defaults to {}."
2717
    )
2718

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

2741
    /* table.outs */
2742
    (
102 ✔
2743
        "table.outs.buckets",
2744
        setting<uint32_t>(&configured.database.outs.buckets),
34 ✔
2745
        "The number of buckets in the outs table head, defaults to {} (0 disables address index)."
2746
    )
2747
    (
102 ✔
2748
        "table.outs.expected",
2749
        setting<uint64_t>(&configured.database.outs.expected),
34 ✔
2750
        "The expected element count of the outs table, defaults to {}."
2751
    )
2752
    (
102 ✔
2753
        "table.outs.size",
2754
        setting<uint64_t>(&configured.database.outs.size),
34 ✔
2755
        "The minimum allocation of the outs table body, defaults to {}."
2756
    )
2757
    (
102 ✔
2758
        "table.outs.rate",
2759
        setting<uint16_t>(&configured.database.outs.rate),
34 ✔
2760
        "The percentage expansion of the outs table body, defaults to {}."
2761
    )
2762

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

2785
    /* table.txs */
2786
    (
102 ✔
2787
        "table.txs.buckets",
2788
        setting<uint32_t>(&configured.database.txs.buckets),
34 ✔
2789
        "The number of buckets in the txs table head, defaults to {}."
2790
    )
2791
    (
102 ✔
2792
        "table.txs.size",
2793
        setting<uint64_t>(&configured.database.txs.size),
34 ✔
2794
        "The minimum allocation of the txs table body, defaults to {}."
2795
    )
2796
    (
102 ✔
2797
        "table.txs.rate",
2798
        setting<uint16_t>(&configured.database.txs.rate),
34 ✔
2799
        "The percentage expansion of the txs table body, defaults to {}."
2800
    )
2801

2802
    /* table.candidate */
2803
    (
102 ✔
2804
        "table.candidate.buckets",
2805
        setting<uint32_t>(&configured.database.candidate.buckets),
34 ✔
2806
        "The number of buckets provisioned in the candidate table head, defaults to {}."
2807
    )
2808
    (
102 ✔
2809
        "table.candidate.rate",
2810
        setting<uint16_t>(&configured.database.candidate.rate),
34 ✔
2811
        "The percentage expansion of the candidate table head, defaults to {}."
2812
    )
2813

2814
    /* table.confirmed */
2815
    (
102 ✔
2816
        "table.confirmed.buckets",
2817
        setting<uint32_t>(&configured.database.confirmed.buckets),
34 ✔
2818
        "The number of buckets provisioned in the confirmed table head, defaults to {}."
2819
    )
2820
    (
102 ✔
2821
        "table.confirmed.rate",
2822
        setting<uint16_t>(&configured.database.confirmed.rate),
34 ✔
2823
        "The percentage expansion of the confirmed table head, defaults to {}."
2824
    )
2825

2826
    /* table.strong */
2827
    (
102 ✔
2828
        "table.strong.buckets",
2829
        setting<uint32_t>(&configured.database.strong.buckets),
34 ✔
2830
        "The number of buckets provisioned in the strong table head, defaults to {}."
2831
    )
2832
    (
102 ✔
2833
        "table.strong.rate",
2834
        setting<uint16_t>(&configured.database.strong.rate),
34 ✔
2835
        "The percentage expansion of the strong table head, defaults to {}."
2836
    )
2837

2838
    /* table.scan */
2839
    (
102 ✔
2840
        "table.scan.buckets",
2841
        setting<uint32_t>(&configured.database.scan.buckets),
34 ✔
2842
        "The number of buckets provisioned in the scan table head, defaults to {}."
2843
    )
2844
    (
102 ✔
2845
        "table.scan.size",
2846
        setting<uint64_t>(&configured.database.scan.size),
34 ✔
2847
        "The minimum allocation of the scan table body, defaults to {}."
2848
    )
2849
    (
102 ✔
2850
        "table.scan.rate",
2851
        setting<uint16_t>(&configured.database.scan.rate),
34 ✔
2852
        "The percentage expansion of the scan table body, defaults to {}."
2853
    )
2854

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

2877
    /* table.ecdsa */
2878
    (
102 ✔
2879
        "table.ecdsa.size",
2880
        setting<uint64_t>(&configured.database.ecdsa.size),
34 ✔
2881
        "The minimum allocation of each batch_ecdsa table body, defaults to {}."
2882
    )
2883
    (
102 ✔
2884
        "table.ecdsa.rate",
2885
        setting<uint16_t>(&configured.database.ecdsa.rate),
34 ✔
2886
        "The percentage expansion of each batch_ecdsa table body, defaults to {}."
2887
    )
2888

2889
    /* table.schnorr */
2890
    (
102 ✔
2891
        "table.schnorr.size",
2892
        setting<uint64_t>(&configured.database.schnorr.size),
34 ✔
2893
        "The minimum allocation of each batch_schnorr table body, defaults to {}."
2894
    )
2895
    (
102 ✔
2896
        "table.schnorr.rate",
2897
        setting<uint16_t>(&configured.database.schnorr.rate),
34 ✔
2898
        "The percentage expansion of each batch_schnorr table body, defaults to {}."
2899
    )
2900

2901
    /* table.silent */
2902
    (
102 ✔
2903
        "table.silent.size",
2904
        setting<uint64_t>(&configured.database.silent.size),
34 ✔
2905
        "The minimum allocation of each batch_silent table body, defaults to {}."
2906
    )
2907
    (
102 ✔
2908
        "table.silent.rate",
2909
        setting<uint16_t>(&configured.database.silent.rate),
34 ✔
2910
        "The percentage expansion of each batch_silent table body, defaults to {}."
2911
    )
2912

2913
    /* table.prevalid */
2914
    (
102 ✔
2915
        "table.prevalid.size",
2916
        setting<uint64_t>(&configured.database.prevalid.size),
34 ✔
2917
        "The minimum allocation of each batch_prevalid table body, defaults to {}."
2918
    )
2919
    (
102 ✔
2920
        "table.prevalid.rate",
2921
        setting<uint16_t>(&configured.database.prevalid.rate),
34 ✔
2922
        "The percentage expansion of each batch_prevalid table body, defaults to {}."
2923
    )
2924

2925
    /* table.presilent */
2926
    (
102 ✔
2927
        "table.presilent.size",
2928
        setting<uint64_t>(&configured.database.presilent.size),
34 ✔
2929
        "The minimum allocation of each batch_presilent table body, defaults to {}."
2930
    )
2931
    (
102 ✔
2932
        "table.presilent.rate",
2933
        setting<uint16_t>(&configured.database.presilent.rate),
34 ✔
2934
        "The percentage expansion of each batch_presilent table body, defaults to {}."
2935
    )
2936

2937
    /* table.prevout */
2938
    (
102 ✔
2939
        "table.prevout.buckets",
2940
        setting<uint32_t>(&configured.database.prevout.buckets),
34 ✔
2941
        "The minimum number of buckets in the prevout table head, defaults to {}."
2942
    )
2943
    (
102 ✔
2944
        "table.prevout.size",
2945
        setting<uint64_t>(&configured.database.prevout.size),
34 ✔
2946
        "The minimum allocation of the prevout table body, defaults to {}."
2947
    )
2948
    (
102 ✔
2949
        "table.prevout.rate",
2950
        setting<uint16_t>(&configured.database.prevout.rate),
34 ✔
2951
        "The percentage expansion of the prevout table, defaults to {}."
2952
    )
2953

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

2976
    /* table.state */
2977
    (
102 ✔
2978
        "table.state.buckets",
2979
        setting<uint32_t>(&configured.database.state.buckets),
34 ✔
2980
        "The number of buckets provisioned in the state table head, defaults to {}."
2981
    )
2982
    (
102 ✔
2983
        "table.state.rate",
2984
        setting<uint16_t>(&configured.database.state.rate),
34 ✔
2985
        "The percentage expansion of the state table head, defaults to {}."
2986
    )
2987

2988
    /* table.pool */
2989
    (
102 ✔
2990
        "table.pool.buckets",
2991
        setting<uint32_t>(&configured.database.pool.buckets),
34 ✔
2992
        "The number of buckets in the pool table head, defaults to {} (0 disables)."
2993
    )
2994
    (
102 ✔
2995
        "table.pool.expected",
2996
        setting<uint64_t>(&configured.database.pool.expected),
34 ✔
2997
        "The expected element count of the pool table, defaults to {}."
2998
    )
2999
    (
102 ✔
3000
        "table.pool.size",
3001
        setting<uint64_t>(&configured.database.pool.size),
34 ✔
3002
        "The minimum allocation of the pool table body, defaults to {}."
3003
    )
3004
    (
102 ✔
3005
        "table.pool.rate",
3006
        setting<uint16_t>(&configured.database.pool.rate),
34 ✔
3007
        "The percentage expansion of the pool table body, defaults to {}."
3008
    )
3009

3010
    /* table.spends */
3011
    (
102 ✔
3012
        "table.spends.size",
3013
        setting<uint64_t>(&configured.database.spends.size),
34 ✔
3014
        "The minimum allocation of the spends table body, defaults to {}."
3015
    )
3016
    (
102 ✔
3017
        "table.spends.rate",
3018
        setting<uint16_t>(&configured.database.spends.rate),
34 ✔
3019
        "The percentage expansion of the spends table body, defaults to {}."
3020
    )
3021

3022
    /* table.filter_bk */
3023
    (
102 ✔
3024
        "table.filter_bk.buckets",
3025
        setting<uint32_t>(&configured.database.filter_bk.buckets),
34 ✔
3026
        "The number of buckets in the filter_bk table head, defaults to {}."
3027
    )
3028
    (
102 ✔
3029
        "table.filter_bk.size",
3030
        setting<uint64_t>(&configured.database.filter_bk.size),
34 ✔
3031
        "The minimum allocation of the filter_bk table body, defaults to {}."
3032
    )
3033
    (
102 ✔
3034
        "table.filter_bk.rate",
3035
        setting<uint16_t>(&configured.database.filter_bk.rate),
34 ✔
3036
        "The percentage expansion of the filter_bk table body, defaults to {}."
3037
    )
3038

3039
    /* table.filter_tx */
3040
    (
102 ✔
3041
        "table.filter_tx.buckets",
3042
        setting<uint32_t>(&configured.database.filter_tx.buckets),
34 ✔
3043
        "The number of buckets in the filter_tx table head, defaults to {}."
3044
    )
3045
    (
102 ✔
3046
        "table.filter_tx.size",
3047
        setting<uint64_t>(&configured.database.filter_tx.size),
34 ✔
3048
        "The minimum allocation of the filter_tx table body, defaults to {}."
3049
    )
3050
    (
102 ✔
3051
        "table.filter_tx.rate",
3052
        setting<uint16_t>(&configured.database.filter_tx.rate),
34 ✔
3053
        "The percentage expansion of the filter_tx table body, defaults to {}."
3054
    )
3055

3056
    /* [log] */
3057
#if defined(HAVE_LOGA)
3058
    (
102 ✔
3059
        "log.application",
3060
        setting<bool>(&configured.log.application),
34 ✔
3061
        "Enable application logging, defaults to {}."
3062
    )
3063
#endif
3064
#if defined(HAVE_LOGN)
3065
    (
102 ✔
3066
        "log.news",
3067
        setting<bool>(&configured.log.news),
34 ✔
3068
        "Enable news logging, defaults to {}."
3069
    )
3070
#endif
3071
#if defined(HAVE_LOGS)
3072
    (
102 ✔
3073
        "log.session",
3074
        setting<bool>(&configured.log.session),
34 ✔
3075
        "Enable session logging, defaults to {}."
3076
    )
3077
#endif
3078
#if defined(HAVE_LOGP)
3079
    (
102 ✔
3080
        "log.protocol",
3081
        setting<bool>(&configured.log.protocol),
34 ✔
3082
        "Enable protocol logging, defaults to {}."
3083
    )
3084
#endif
3085
#if defined(HAVE_LOGX)
3086
    (
102 ✔
3087
        "log.proxy",
3088
        setting<bool>(&configured.log.proxy),
34 ✔
3089
        "Enable proxy logging, defaults to {}."
3090
    )
3091
#endif
3092
#if defined(HAVE_LOGR)
3093
    (
102 ✔
3094
        "log.remote",
3095
        setting<bool>(&configured.log.remote),
34 ✔
3096
        "Enable remote fault logging, defaults to {}."
3097
    )
3098
#endif
3099
#if defined(HAVE_LOGF)
3100
    (
102 ✔
3101
        "log.fault",
3102
        setting<bool>(&configured.log.fault),
34 ✔
3103
        "Enable local fault logging, defaults to {}."
3104
    )
3105
#endif
3106
#if defined(HAVE_LOGQ)
3107
    (
102 ✔
3108
        "log.quitting",
3109
        setting<bool>(&configured.log.quitting),
34 ✔
3110
        "Enable quitting logging, defaults to {}."
3111
    )
3112
#endif
3113
#if defined(HAVE_LOGO)
3114
    (
102 ✔
3115
        "log.objects",
3116
        setting<bool>(&configured.log.objects),
34 ✔
3117
        "Enable objects logging, defaults to {}."
3118
    )
3119
#endif
3120
#if defined(HAVE_LOGV)
3121
    (
102 ✔
3122
        "log.verbose",
3123
        setting<bool>(&configured.log.verbose),
34 ✔
3124
        "Enable verbose logging, defaults to {}."
3125
    )
3126
#endif
3127
    (
102 ✔
3128
        "log.console",
3129
        setting<bool>(&configured.log.console),
34 ✔
3130
        "Write the console log to a pair of rotated log files, defaults to {}."
3131
    )
3132
    (
102 ✔
3133
        "log.limit",
3134
        setting<uint32_t>(&configured.log.limit),
34 ✔
3135
        "The maximum byte size of each pair of rotated log files, defaults to {}."
3136
    )
3137
    (
102 ✔
3138
        "log.events",
3139
        setting<bool>(&configured.log.events),
34 ✔
3140
        "Write events to the events log file, defaults to {}."
3141
    )
3142
    (
68 ✔
3143
        "log.thread_priority",
3144
        setting<bool>(&configured.log.thread_priority),
34 ✔
3145
        "Set the log thread to normal processing priority, defaults to {}."
3146
    );
3147

3148
    return description;
34 ✔
UNCOV
3149
}
×
3150

3151
BC_PUSH_WARNING(NO_ARRAY_TO_POINTER_DECAY)
3152
bool parser::parse(int argc, const char* argv[], std::ostream& error) THROWS
36 ✔
3153
BC_POP_WARNING()
3154
{
3155
    try
3156
    {
3157
        auto file = false;
3158
        load_command_variables(argc, argv);
36 ✔
3159
        ////load_environment_variables(environment_prefix);
3160

3161
        // Don't load config file if help is specified.
3162
        if (!get_option(help_variable))
34 ✔
3163
        {
3164
            // Returns true if the settings were loaded from a file.
3165
            file = load_configuration_variables(config_variable);
34 ✔
3166
        }
3167

3168
        // Update bound variables in metadata.settings.
3169
        notify(variables_);
34 ✔
3170
        select_network();
34 ✔
3171
        select_root();
34 ✔
3172
        select_paths();
34 ✔
3173
        derive_buckets();
34 ✔
3174

3175
        // Clear the config file path if it wasn't used.
3176
        if (!file)
34 ✔
3177
            configured.file = {};
7 ✔
3178
    }
3179
    catch (const option_exception& e)
2 ✔
3180
    {
3181
        error << format_invalid_parameter(e.what()) << std::endl;
2 ✔
3182
        return false;
3183
    }
2 ✔
3184

3185
    return true;
3186
}
3187

3188
} // namespace server
3189
} // 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