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

libbitcoin / libbitcoin-server / 44995759449

22 Nov 2026 06:53AM UTC coverage: 94.385% (-0.2%) from 94.577%
44995759449

push

github

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

Interface and embedded site updates.

196 of 222 new or added lines in 20 files covered. (88.29%)

179 existing lines in 6 files now uncovered.

13111 of 13891 relevant lines covered (94.38%)

453.76 hits per line

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

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

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

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

32
namespace libbitcoin {
33
namespace server {
34

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

377
    return description;
36 ✔
378
}
×
379

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

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

400
    return description;
×
401
}
×
402

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2573
    /* [pool] */
2574
    (
102 ✔
2575
        "pool.minimum_fee_rate",
2576
        setting<double>(&configured.node.pool.minimum_fee_rate),
34 ✔
2577
        "Minimum fee rate for non-conflicting tx acceptance, defaults to {}."
2578
    )
2579
    (
102 ✔
2580
        "pool.cutoff_rate",
2581
        setting<double>(&configured.node.pool.cutoff_rate),
34 ✔
2582
        "Fee rate on space when resolving template conflicts, defaults to {}."
2583
    )
2584
    (
102 ✔
2585
        "pool.maximum_outcomes",
2586
        setting<uint32_t>(&configured.node.pool.maximum_outcomes),
34 ✔
2587
        "Maximum conflict outcomes evaluated to accept a transaction, defaults to {}."
2588
    )
2589
    (
102 ✔
2590
        "pool.bytes_per_sigop",
2591
        setting<uint32_t>(&configured.node.pool.bytes_per_sigop),
34 ✔
2592
        "Virtual bytes charged per signature operation, defaults to {}."
2593
    )
2594
    (
102 ✔
2595
        "pool.coinbase_weight",
2596
        setting<uint32_t>(&configured.node.pool.coinbase_weight),
34 ✔
2597
        "Declared weight of the miner's coinbase transaction, defaults to {}."
2598
    )
2599
    (
102 ✔
2600
        "pool.maximum_chunk_depth",
2601
        setting<uint32_t>(&configured.node.pool.maximum_chunk_depth),
34 ✔
2602
        "Maximum ancestor depth of a block template chunk, defaults to {}."
2603
    )
2604

2605
    /* [database] */
2606
    (
102 ✔
2607
        "database.turbo",
2608
        setting<bool>(&configured.database.turbo),
34 ✔
2609
        "Allow individual non-validation queries to use all CPUs, defaults to {}."
2610
    )
2611
    (
102 ✔
2612
        "database.cold_reads",
2613
        setting<uint16_t>(&configured.database.cold_reads),
34 ✔
2614
        "Limit of concurrent prefetched block reads from disk, defaults to {} (0 unlimited)."
2615
    )
2616
    (
102 ✔
2617
        "database.memory_reserve",
2618
        setting<uint64_t>(&configured.database.memory_reserve),
34 ✔
2619
        "Bytes of unused memory restored by cache release when current, defaults to {} (0 disables)."
2620
    )
2621
    (
102 ✔
2622
        "database.memory_ceiling",
2623
        setting<uint64_t>(&configured.database.memory_ceiling),
34 ✔
2624
        "Bytes of process memory above which cache is released when current, defaults to {} (0 disables)."
2625
    )
2626
    (
102 ✔
2627
        "database.gpu_scan_minimum",
2628
        setting<uint32_t>(&configured.database.gpu_scan_minimum),
34 ✔
2629
        "Minimum transactions for a silent payment scan to use the GPU, defaults to {}."
2630
    )
2631
    (
102 ✔
2632
        "database.mark_unconfirmable",
2633
        setting<bool>(&configured.database.mark_unconfirmable),
34 ✔
2634
        "Save unconfirmable block state (prevents revalidation), defaults to {}."
2635
    )
2636
    (
102 ✔
2637
        "database.interval_depth",
2638
        setting<uint8_t>(&configured.database.interval_depth),
34 ✔
2639
        "The interval depth for merkle proof optimization, defaults to {}."
2640
    )
2641

2642
    /* [table.*] */
2643

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

2666
    /* table.input */
2667
    (
102 ✔
2668
        "table.input.size",
2669
        setting<uint64_t>(&configured.database.input.size),
34 ✔
2670
        "The minimum allocation of the input table body, defaults to {}."
2671
    )
2672
    (
102 ✔
2673
        "table.input.rate",
2674
        setting<uint16_t>(&configured.database.input.rate),
34 ✔
2675
        "The percentage expansion of the input table body, defaults to {}."
2676
    )
2677

2678
    /* table.output */
2679
    (
102 ✔
2680
        "table.output.size",
2681
        setting<uint64_t>(&configured.database.output.size),
34 ✔
2682
        "The minimum allocation of the output table body, defaults to {}."
2683
    )
2684
    (
102 ✔
2685
        "table.output.rate",
2686
        setting<uint16_t>(&configured.database.output.rate),
34 ✔
2687
        "The percentage expansion of the output table body, defaults to {}."
2688
    )
2689

2690
    /* table.ins */
2691
    (
102 ✔
2692
        "table.ins.buckets",
2693
        setting<uint32_t>(&configured.database.ins.buckets),
34 ✔
2694
        "The number of buckets in the ins table head, derived from expected and memory, defaults to {}."
2695
    )
2696
    (
102 ✔
2697
        "table.ins.expected",
2698
        setting<uint64_t>(&configured.database.ins.expected),
34 ✔
2699
        "The expected element count of the ins table, defaults to {}."
2700
    )
2701
    (
102 ✔
2702
        "table.ins.size",
2703
        setting<uint64_t>(&configured.database.ins.size),
34 ✔
2704
        "The minimum allocation of the ins table body, defaults to {}."
2705
    )
2706
    (
102 ✔
2707
        "table.ins.rate",
2708
        setting<uint16_t>(&configured.database.ins.rate),
34 ✔
2709
        "The percentage expansion of the ins table body, defaults to {}."
2710
    )
2711

2712
    /* table.outs */
2713
    (
102 ✔
2714
        "table.outs.buckets",
2715
        setting<uint32_t>(&configured.database.outs.buckets),
34 ✔
2716
        "The number of buckets in the outs table head, derived from expected and memory, defaults to {} (0 disables address index)."
2717
    )
2718
    (
102 ✔
2719
        "table.outs.expected",
2720
        setting<uint64_t>(&configured.database.outs.expected),
34 ✔
2721
        "The expected element count of the outs table, defaults to {}."
2722
    )
2723
    (
102 ✔
2724
        "table.outs.size",
2725
        setting<uint64_t>(&configured.database.outs.size),
34 ✔
2726
        "The minimum allocation of the outs table body, defaults to {}."
2727
    )
2728
    (
102 ✔
2729
        "table.outs.rate",
2730
        setting<uint16_t>(&configured.database.outs.rate),
34 ✔
2731
        "The percentage expansion of the outs table body, defaults to {}."
2732
    )
2733

2734
    /* table.tx */
2735
    (
102 ✔
2736
        "table.tx.buckets",
2737
        setting<uint32_t>(&configured.database.tx.buckets),
34 ✔
2738
        "The number of buckets in the tx table head, derived from expected and memory, defaults to {}."
2739
    )
2740
    (
102 ✔
2741
        "table.tx.expected",
2742
        setting<uint64_t>(&configured.database.tx.expected),
34 ✔
2743
        "The expected element count of the tx table, defaults to {}."
2744
    )
2745
    (
102 ✔
2746
        "table.tx.size",
2747
        setting<uint64_t>(&configured.database.tx.size),
34 ✔
2748
        "The minimum allocation of the tx table body, defaults to {}."
2749
    )
2750
    (
102 ✔
2751
        "table.tx.rate",
2752
        setting<uint16_t>(&configured.database.tx.rate),
34 ✔
2753
        "The percentage expansion of the tx table body, defaults to {}."
2754
    )
2755

2756
    /* table.txs */
2757
    (
102 ✔
2758
        "table.txs.buckets",
2759
        setting<uint32_t>(&configured.database.txs.buckets),
34 ✔
2760
        "The number of buckets in the txs table head, defaults to {}."
2761
    )
2762
    (
102 ✔
2763
        "table.txs.size",
2764
        setting<uint64_t>(&configured.database.txs.size),
34 ✔
2765
        "The minimum allocation of the txs table body, defaults to {}."
2766
    )
2767
    (
102 ✔
2768
        "table.txs.rate",
2769
        setting<uint16_t>(&configured.database.txs.rate),
34 ✔
2770
        "The percentage expansion of the txs table body, defaults to {}."
2771
    )
2772

2773
    /* table.candidate */
2774
    (
102 ✔
2775
        "table.candidate.buckets",
2776
        setting<uint32_t>(&configured.database.candidate.buckets),
34 ✔
2777
        "The number of buckets provisioned in the candidate table head, defaults to {}."
2778
    )
2779
    (
102 ✔
2780
        "table.candidate.rate",
2781
        setting<uint16_t>(&configured.database.candidate.rate),
34 ✔
2782
        "The percentage expansion of the candidate table head, defaults to {}."
2783
    )
2784

2785
    /* table.confirmed */
2786
    (
102 ✔
2787
        "table.confirmed.buckets",
2788
        setting<uint32_t>(&configured.database.confirmed.buckets),
34 ✔
2789
        "The number of buckets provisioned in the confirmed table head, defaults to {}."
2790
    )
2791
    (
102 ✔
2792
        "table.confirmed.rate",
2793
        setting<uint16_t>(&configured.database.confirmed.rate),
34 ✔
2794
        "The percentage expansion of the confirmed table head, defaults to {}."
2795
    )
2796

2797
    /* table.strong */
2798
    (
102 ✔
2799
        "table.strong.buckets",
2800
        setting<uint32_t>(&configured.database.strong.buckets),
34 ✔
2801
        "The number of buckets provisioned in the strong table head, derived from tx expected, defaults to {}."
2802
    )
2803
    (
102 ✔
2804
        "table.strong.rate",
2805
        setting<uint16_t>(&configured.database.strong.rate),
34 ✔
2806
        "The percentage expansion of the strong table head, defaults to {}."
2807
    )
2808

2809
    /* table.scan */
2810
    (
102 ✔
2811
        "table.scan.buckets",
2812
        setting<uint32_t>(&configured.database.scan.buckets),
34 ✔
2813
        "The number of buckets provisioned in the scan table head, defaults to {}."
2814
    )
2815
    (
102 ✔
2816
        "table.scan.size",
2817
        setting<uint64_t>(&configured.database.scan.size),
34 ✔
2818
        "The minimum allocation of the scan table body, defaults to {}."
2819
    )
2820
    (
102 ✔
2821
        "table.scan.rate",
2822
        setting<uint16_t>(&configured.database.scan.rate),
34 ✔
2823
        "The percentage expansion of the scan table body, defaults to {}."
2824
    )
2825

2826
    /* table.wtxid */
2827
    (
102 ✔
2828
        "table.wtxid.buckets",
2829
        setting<uint32_t>(&configured.database.wtxid.buckets),
34 ✔
2830
        "The number of buckets in the wtxid table head, derived from expected and memory, defaults to {} (0 disables)."
2831
    )
2832
    (
102 ✔
2833
        "table.wtxid.expected",
2834
        setting<uint64_t>(&configured.database.wtxid.expected),
34 ✔
2835
        "The expected element count of the wtxid table, defaults to {}."
2836
    )
2837
    (
102 ✔
2838
        "table.wtxid.size",
2839
        setting<uint64_t>(&configured.database.wtxid.size),
34 ✔
2840
        "The minimum allocation of the wtxid table body, defaults to {}."
2841
    )
2842
    (
102 ✔
2843
        "table.wtxid.rate",
2844
        setting<uint16_t>(&configured.database.wtxid.rate),
34 ✔
2845
        "The percentage expansion of the wtxid table body, defaults to {}."
2846
    )
2847

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

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

2872
    /* table.silent */
2873
    (
102 ✔
2874
        "table.silent.size",
2875
        setting<uint64_t>(&configured.database.silent.size),
34 ✔
2876
        "The minimum allocation of each batch_silent table body, defaults to {}."
2877
    )
2878
    (
102 ✔
2879
        "table.silent.rate",
2880
        setting<uint16_t>(&configured.database.silent.rate),
34 ✔
2881
        "The percentage expansion of each batch_silent table body, defaults to {}."
2882
    )
2883

2884
    /* table.prevalid */
2885
    (
102 ✔
2886
        "table.prevalid.size",
2887
        setting<uint64_t>(&configured.database.prevalid.size),
34 ✔
2888
        "The minimum allocation of each batch_prevalid table body, defaults to {}."
2889
    )
2890
    (
102 ✔
2891
        "table.prevalid.rate",
2892
        setting<uint16_t>(&configured.database.prevalid.rate),
34 ✔
2893
        "The percentage expansion of each batch_prevalid table body, defaults to {}."
2894
    )
2895

2896
    /* table.presilent */
2897
    (
102 ✔
2898
        "table.presilent.size",
2899
        setting<uint64_t>(&configured.database.presilent.size),
34 ✔
2900
        "The minimum allocation of each batch_presilent table body, defaults to {}."
2901
    )
2902
    (
102 ✔
2903
        "table.presilent.rate",
2904
        setting<uint16_t>(&configured.database.presilent.rate),
34 ✔
2905
        "The percentage expansion of each batch_presilent table body, defaults to {}."
2906
    )
2907

2908
    /* table.prevout */
2909
    (
102 ✔
2910
        "table.prevout.buckets",
2911
        setting<uint32_t>(&configured.database.prevout.buckets),
34 ✔
2912
        "The minimum number of buckets in the prevout table head, defaults to {}."
2913
    )
2914
    (
102 ✔
2915
        "table.prevout.size",
2916
        setting<uint64_t>(&configured.database.prevout.size),
34 ✔
2917
        "The minimum allocation of the prevout table body, defaults to {}."
2918
    )
2919
    (
102 ✔
2920
        "table.prevout.rate",
2921
        setting<uint16_t>(&configured.database.prevout.rate),
34 ✔
2922
        "The percentage expansion of the prevout table, defaults to {}."
2923
    )
2924

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

2947
    /* table.state */
2948
    (
102 ✔
2949
        "table.state.buckets",
2950
        setting<uint32_t>(&configured.database.state.buckets),
34 ✔
2951
        "The number of buckets provisioned in the state table head, defaults to {}."
2952
    )
2953
    (
102 ✔
2954
        "table.state.rate",
2955
        setting<uint16_t>(&configured.database.state.rate),
34 ✔
2956
        "The percentage expansion of the state table head, defaults to {}."
2957
    )
2958

2959
    /* table.pool */
2960
    (
102 ✔
2961
        "table.pool.buckets",
2962
        setting<uint32_t>(&configured.database.pool.buckets),
34 ✔
2963
        "The number of buckets in the pool table head, derived from expected and memory, defaults to {} (0 disables)."
2964
    )
2965
    (
102 ✔
2966
        "table.pool.expected",
2967
        setting<uint64_t>(&configured.database.pool.expected),
34 ✔
2968
        "The expected element count of the pool table, defaults to {}."
2969
    )
2970
    (
102 ✔
2971
        "table.pool.size",
2972
        setting<uint64_t>(&configured.database.pool.size),
34 ✔
2973
        "The minimum allocation of the pool table body, defaults to {}."
2974
    )
2975
    (
102 ✔
2976
        "table.pool.rate",
2977
        setting<uint16_t>(&configured.database.pool.rate),
34 ✔
2978
        "The percentage expansion of the pool table body, defaults to {}."
2979
    )
2980

2981
    /* table.spends */
2982
    (
102 ✔
2983
        "table.spends.size",
2984
        setting<uint64_t>(&configured.database.spends.size),
34 ✔
2985
        "The minimum allocation of the spends table body, defaults to {}."
2986
    )
2987
    (
102 ✔
2988
        "table.spends.rate",
2989
        setting<uint16_t>(&configured.database.spends.rate),
34 ✔
2990
        "The percentage expansion of the spends table body, defaults to {}."
2991
    )
2992

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

3010
    /* table.filter_tx */
3011
    (
102 ✔
3012
        "table.filter_tx.buckets",
3013
        setting<uint32_t>(&configured.database.filter_tx.buckets),
34 ✔
3014
        "The number of buckets in the filter_tx table head, defaults to {}."
3015
    )
3016
    (
102 ✔
3017
        "table.filter_tx.size",
3018
        setting<uint64_t>(&configured.database.filter_tx.size),
34 ✔
3019
        "The minimum allocation of the filter_tx table body, defaults to {}."
3020
    )
3021
    (
102 ✔
3022
        "table.filter_tx.rate",
3023
        setting<uint16_t>(&configured.database.filter_tx.rate),
34 ✔
3024
        "The percentage expansion of the filter_tx table body, defaults to {}."
3025
    )
3026

3027
    /* [log] */
3028
#if defined(HAVE_LOGA)
3029
    (
102 ✔
3030
        "log.application",
3031
        setting<bool>(&configured.log.application),
34 ✔
3032
        "Enable application logging, defaults to {}."
3033
    )
3034
#endif
3035
#if defined(HAVE_LOGN)
3036
    (
102 ✔
3037
        "log.news",
3038
        setting<bool>(&configured.log.news),
34 ✔
3039
        "Enable news logging, defaults to {}."
3040
    )
3041
#endif
3042
#if defined(HAVE_LOGS)
3043
    (
102 ✔
3044
        "log.session",
3045
        setting<bool>(&configured.log.session),
34 ✔
3046
        "Enable session logging, defaults to {}."
3047
    )
3048
#endif
3049
#if defined(HAVE_LOGP)
3050
    (
102 ✔
3051
        "log.protocol",
3052
        setting<bool>(&configured.log.protocol),
34 ✔
3053
        "Enable protocol logging, defaults to {}."
3054
    )
3055
#endif
3056
#if defined(HAVE_LOGX)
3057
    (
102 ✔
3058
        "log.proxy",
3059
        setting<bool>(&configured.log.proxy),
34 ✔
3060
        "Enable proxy logging, defaults to {}."
3061
    )
3062
#endif
3063
#if defined(HAVE_LOGR)
3064
    (
102 ✔
3065
        "log.remote",
3066
        setting<bool>(&configured.log.remote),
34 ✔
3067
        "Enable remote fault logging, defaults to {}."
3068
    )
3069
#endif
3070
#if defined(HAVE_LOGF)
3071
    (
102 ✔
3072
        "log.fault",
3073
        setting<bool>(&configured.log.fault),
34 ✔
3074
        "Enable local fault logging, defaults to {}."
3075
    )
3076
#endif
3077
#if defined(HAVE_LOGQ)
3078
    (
102 ✔
3079
        "log.quitting",
3080
        setting<bool>(&configured.log.quitting),
34 ✔
3081
        "Enable quitting logging, defaults to {}."
3082
    )
3083
#endif
3084
#if defined(HAVE_LOGO)
3085
    (
102 ✔
3086
        "log.objects",
3087
        setting<bool>(&configured.log.objects),
34 ✔
3088
        "Enable objects logging, defaults to {}."
3089
    )
3090
#endif
3091
#if defined(HAVE_LOGV)
3092
    (
102 ✔
3093
        "log.verbose",
3094
        setting<bool>(&configured.log.verbose),
34 ✔
3095
        "Enable verbose logging, defaults to {}."
3096
    )
3097
#endif
3098
    (
102 ✔
3099
        "log.console",
3100
        setting<bool>(&configured.log.console),
34 ✔
3101
        "Write the console log to a pair of rotated log files, defaults to {}."
3102
    )
3103
    (
102 ✔
3104
        "log.limit",
3105
        setting<uint32_t>(&configured.log.limit),
34 ✔
3106
        "The maximum byte size of each pair of rotated log files, defaults to {}."
3107
    )
3108
    (
102 ✔
3109
        "log.events",
3110
        setting<bool>(&configured.log.events),
34 ✔
3111
        "Write events to the events log file, defaults to {}."
3112
    )
3113
    (
68 ✔
3114
        "log.thread_priority",
3115
        setting<bool>(&configured.log.thread_priority),
34 ✔
3116
        "Set the log thread to normal processing priority, defaults to {}."
3117
    );
3118

3119
    return description;
34 ✔
UNCOV
3120
}
×
3121

3122
BC_PUSH_WARNING(NO_ARRAY_TO_POINTER_DECAY)
3123
bool parser::parse(int argc, const char* argv[], std::ostream& error) THROWS
36 ✔
3124
BC_POP_WARNING()
3125
{
3126
    try
3127
    {
3128
        auto file = false;
3129
        load_command_variables(argc, argv);
36 ✔
3130
        ////load_environment_variables(environment_prefix);
3131

3132
        // Don't load config file if help is specified.
3133
        if (!get_option(help_variable))
34 ✔
3134
        {
3135
            // Returns true if the settings were loaded from a file.
3136
            file = load_configuration_variables(config_variable);
34 ✔
3137
        }
3138

3139
        // Update bound variables in metadata.settings.
3140
        notify(variables_);
34 ✔
3141
        select_network();
34 ✔
3142
        select_root();
34 ✔
3143
        select_paths();
34 ✔
3144
        derive_buckets();
34 ✔
3145

3146
        // Clear the config file path if it wasn't used.
3147
        if (!file)
34 ✔
3148
            configured.file = {};
7 ✔
3149
    }
3150
    catch (const option_exception& e)
2 ✔
3151
    {
3152
        error << format_invalid_parameter(e.what()) << std::endl;
2 ✔
3153
        return false;
3154
    }
2 ✔
3155

3156
    return true;
3157
}
3158

3159
} // namespace server
3160
} // 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