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

libbitcoin / libbitcoin-server / 46042397839

27 Nov 2026 05:30PM UTC coverage: 93.797% (-0.2%) from 93.971%
46042397839

push

github

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

Mine stratum v2 standard channels in the web miner.

41 of 44 new or added lines in 2 files covered. (93.18%)

134 existing lines in 12 files now uncovered.

15394 of 16412 relevant lines covered (93.8%)

453.14 hits per line

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

99.27
/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,
47 ✔
42
    const server::settings::embedded_pages& native,
43
    const server::settings::embedded_pages& admin) NOEXCEPT
47 ✔
44
  : configured(context, native, admin)
47 ✔
45
{
46
}
47 ✔
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
47 ✔
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"))
47 ✔
59
        database.header.buckets = table::header::derive_buckets(
47 ✔
60
            database.header.expected, contested, target);
61

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

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

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

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

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

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

87
// Stratum reserves the weight and sigops of its larger coinbase, an
88
// unconfigured or invalid payout address reserving for the largest address
89
// output. A configured reservation governs (e.g. for an external miner).
90
void parser::derive_coinbase() NOEXCEPT
47 ✔
91
{
92
    const auto& v1 = configured.server.stratum_v1;
93
    const auto& v2 = configured.server.stratum_v2;
94
    if (!v1.enabled() && !v2.enabled())
47 ✔
95
        return;
38 ✔
96

97
    size_t weight{};
9 ✔
98
    size_t sigops{};
9 ✔
99
    const auto& wallet = configured.server.wallet;
9 ✔
100
    const auto reserve = [&](const settings::mining_server& stratum) NOEXCEPT
18 ✔
101
    {
102
        if (!stratum.enabled())
18 ✔
103
            return;
6 ✔
104

105
        // A p2kh output carries the only legacy sigop of an address.
106
        auto payout = max_address_script;
107
        auto operations = chain::heavy_sigops_factor;
12 ✔
108
        if (!stratum.payout_address.empty())
12 ✔
109
        {
110
            chain::script out{};
3 ✔
111
            const auto ec = output_script(out, stratum.payout_address,
3 ✔
112
                wallet.p2kh_prefix, wallet.p2sh_prefix, wallet.witness_prefix);
3 ✔
113

114
            if (!ec)
3 ✔
115
            {
116
                payout = out.serialized_size(false);
2 ✔
117
                operations = chain::output{ zero, out }.signature_operations(true);
2 ✔
118
            }
119
        }
3 ✔
120

121
        const auto script = coinbase_script_size(stratum.coinbase_tag.size(),
12 ✔
122
            stratum.coinbase_extranonce_size());
12 ✔
123

124
        weight = std::max(weight, coinbase_weight(script, payout));
12 ✔
125
        sigops = std::max(sigops, operations);
12 ✔
126
    };
9 ✔
127

128
    reserve(v1);
9 ✔
129
    reserve(v2);
9 ✔
130

131
    auto& pool = configured.node.pool;
132
    if (!is_configured("pool.coinbase_weight"))
9 ✔
133
        pool.coinbase_weight = possible_narrow_cast<uint32_t>(weight);
8 ✔
134

135
    if (!is_configured("pool.coinbase_sigops"))
9 ✔
136
        pool.coinbase_sigops = possible_narrow_cast<uint32_t>(sigops);
8 ✔
137
}
138

139
// Specified network governs, otherwise configuration,
140
// otherwise network of a configured genesis block.
141
void parser::select_network() NOEXCEPT
45 ✔
142
{
143
    const chain::selection selected = configured.net;
45 ✔
144
    const auto specified = selected != chain::selection::none;
145

146
    chain::selection network = configured.bitcoin.network;
45 ✔
147
    if (specified)
45 ✔
148
    {
149
        network = selected;
150
    }
151
    else if (!is_configured("bitcoin.network") &&
64 ✔
152
        is_configured("bitcoin.genesis_block"))
41 ✔
153
    {
154
        configured.bitcoin.initialize();
2 ✔
155
        if (configured.bitcoin.genesis_network != chain::selection::none)
2 ✔
156
            network = configured.bitcoin.genesis_network;
157
    }
158

159
    if (network != configured.node.network)
45 ✔
160
        reset_network(network);
24 ✔
161

162
    if (specified)
45 ✔
163
        configured.bitcoin.network = network;
22 ✔
164
}
45 ✔
165

166
// The network-named directory, under the configured root.
167
void parser::select_root() NOEXCEPT
45 ✔
168
{
169
    const auto network = config::selection::to_word(configured.node.network);
45 ✔
170
    root_ = configured.server.path / std::string{ network };
45 ✔
171
}
45 ✔
172

173
// Paths are relative to the network directory.
174
void parser::select_paths() NOEXCEPT
45 ✔
175
{
176
    const auto relative = [this](config::path& path) NOEXCEPT
1,350 ✔
177
    {
178
        if (!path.empty())
1,350 ✔
179
            path = root_ / path;
4 ✔
180
    };
1,350 ✔
181

182
    const auto rooted = [this](config::path& path) NOEXCEPT
180 ✔
183
    {
184
        path = path.empty() ? root_ : root_ / path;
180 ✔
185
    };
180 ✔
186

187
    const auto secured = [&](network::settings::tls_server& service) NOEXCEPT
405 ✔
188
    {
189
        relative(service.cert_auth);
405 ✔
190
        relative(service.cert_path);
405 ✔
191
        relative(service.key_path);
405 ✔
192
    };
450 ✔
193

194
    if (!is_configured("folders.store"))
45 ✔
195
        configured.database.path = "store";
44 ✔
196

197
    rooted(configured.database.path);
45 ✔
198
    rooted(configured.network.path);
45 ✔
199
    rooted(configured.log.console_path);
45 ✔
200
    rooted(configured.log.events_path);
45 ✔
201
    relative(configured.network.inbound.key_path);
45 ✔
202
    relative(configured.server.admin.path);
45 ✔
203
    relative(configured.server.native.path);
45 ✔
204
    secured(configured.server.admin);
45 ✔
205
    secured(configured.server.native);
45 ✔
206
    secured(configured.server.bitcoind);
45 ✔
207
    secured(configured.server.btcd);
45 ✔
208
    secured(configured.server.electrum);
45 ✔
209
    secured(configured.server.sparrow);
45 ✔
210
    secured(configured.server.esplora);
45 ✔
211
    secured(configured.server.stratum_v1);
45 ✔
212
    secured(configured.server.stratum_v2);
45 ✔
213

214
#if defined (HAVE_WINDOWS)
215
    relative(configured.log.symbols_path);
216
#endif
217
}
45 ✔
218

219
// Network of existing store governs at its path, for commands that use store.
220
void parser::read_envelope() NOEXCEPT
4 ✔
221
{
222
    if (configured.make || configured.help || configured.hardware ||
4 ✔
223
        configured.daemon.has_value())
3 ✔
224
        return;
2 ✔
225

226
    server_node::store store{ configured.database };
3 ✔
227
    stored.require_witness = configured.node.require_witness;
3 ✔
228
    stored_code = store.read_envelope(stored);
3 ✔
229
    if (stored_code)
3 ✔
230
        return;
231

232
    if (stored.network != configured.node.network)
2 ✔
233
    {
234
        const chain::selection selected = configured.net;
2 ✔
235
        const auto specified = selected != chain::selection::none;
236

237
        reset_network(stored.network);
2 ✔
238
        derive_buckets();
2 ✔
239
        derive_coinbase();
2 ✔
240

241
        // A specified network is retained as configured, for override reporting.
242
        if (specified)
2 ✔
243
            configured.bitcoin.network = selected;
1 ✔
244
    }
245

246
    const auto& node = configured.node;
247
    current =
248
    {
249
        configured.bitcoin,
2 ✔
250
        configured.database,
251
        node.limited_blocks,
2 ✔
252
        node.provide_filters,
2 ✔
253
        node.require_witness,
2 ✔
254
        node.silent_start_height
2 ✔
255
    };
2 ✔
256

257
    overrides = stored.apply(
2 ✔
258
        configured.bitcoin,
259
        configured.database,
260
        configured.node.limited_blocks,
2 ✔
261
        configured.node.require_witness,
2 ✔
262
        configured.node.silent_start_height);
2 ✔
263
}
3 ✔
264

265
// Network defaults are reset, and then configured settings are reapplied.
266
// Paths are retained, as they are network independent once resolved.
267
void parser::reset_network(chain::selection context) NOEXCEPT
26 ✔
268
{
269
    const auto store = configured.database.path;
26 ✔
270
    const auto peers = configured.network.path;
26 ✔
271
    const auto key = configured.network.inbound.key_path;
26 ✔
272

273
    configured.bitcoin = system::settings{ context };
26 ✔
274
    configured.database = database::settings{ context };
26 ✔
275
    configured.network = network::settings{ context };
26 ✔
276
    configured.node = node::settings{ context };
26 ✔
277
    configured.server.network = context;
26 ✔
278
    configured.server.wallet = server::settings::wallet_settings{ context };
26 ✔
279

280
    BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
281
    for (const auto& option: settings().options())
14,924 ✔
282
    {
283
        const auto& name = option->long_name();
14,898 ✔
284
        if (is_configured(name))
14,898 ✔
285
            option->semantic()->notify(variables().at(name).value());
57 ✔
286
    }
287
    BC_POP_WARNING()
288

289
    configured.database.path = store;
26 ✔
290
    configured.network.path = peers;
26 ✔
291
    configured.network.inbound.key_path = key;
26 ✔
292
}
26 ✔
293

294
// Composes a variable name with its command line shortcut.
295
static std::string alias(const std::string& variable, char shortcut)
799 ✔
296
{
297
    return variable + ',' + shortcut;
799 ✔
298
}
299

300
options_metadata parser::load_options() THROWS
47 ✔
301
{
302
    options_metadata description("options");
47 ✔
303
    description.add_options()
47 ✔
304
    (
94 ✔
305
        alias(config_variable, 'c').c_str(),
94 ✔
306
        value<config::path>(&configured.file),
47 ✔
307
        "Specify path to a configuration settings file."
308
    )
309
    (
94 ✔
310
        alias(net_variable, 'n').c_str(),
94 ✔
311
        value<config::selection>(&configured.net),
47 ✔
312
        ("Specify the network (" + config::selection::names() + "), "
94 ✔
313
            "defaults to the configured network.").c_str()
314
    )
315
    // Prompts.
316
    (
141 ✔
317
        alias(accept_variable, 'a').c_str(),
94 ✔
318
        value<bool>(&configured.accept)->
319
            default_value(false)->zero_tokens(),
94 ✔
320
        "Accept startup prompts without interaction."
321
    )
322
    // Information.
323
    (
141 ✔
324
        alias(help_variable, 'h').c_str(),
94 ✔
325
        value<bool>(&configured.help)->
326
            default_value(false)->zero_tokens(),
94 ✔
327
        "Display command line options."
328
    )
329
    (
141 ✔
330
        alias(hardware_variable, 'w').c_str(),
94 ✔
331
        value<bool>(&configured.hardware)->
332
            default_value(false)->zero_tokens(),
94 ✔
333
        "Display hardware compatibility."
334
    )
335
    (
141 ✔
336
        alias(settings_variable, 's').c_str(),
94 ✔
337
        value<bool>(&configured.settings)->
338
            default_value(false)->zero_tokens(),
94 ✔
339
        "Display all configuration settings."
340
    )
341
    (
141 ✔
342
        alias(version_variable, 'v').c_str(),
94 ✔
343
        value<bool>(&configured.version)->
344
            default_value(false)->zero_tokens(),
94 ✔
345
        "Display version information."
346
    )
347
    // Actions.
348
    (
141 ✔
349
        alias(make_variable, 'm').c_str(),
94 ✔
350
        value<bool>(&configured.make)->
351
            default_value(false)->zero_tokens(),
94 ✔
352
        "Make new store in configured directory."
353
    )
354
    (
141 ✔
355
        alias(backup_variable, 'b').c_str(),
94 ✔
356
        value<bool>(&configured.backup)->
357
            default_value(false)->zero_tokens(),
94 ✔
358
        "Backup to a snapshot (can also do live)."
359
    )
360
    (
141 ✔
361
        alias(restore_variable, 'r').c_str(),
94 ✔
362
        value<bool>(&configured.restore)->
363
            default_value(false)->zero_tokens(),
94 ✔
364
        "Restore from most recent snapshot."
365
    )
366
    (
141 ✔
367
        alias(transform_variable, 't').c_str(),
94 ✔
368
        value<bool>(&configured.transform)->
369
            default_value(false)->zero_tokens(),
94 ✔
370
        "Migrate the store to the compiled schema."
371
    )
372
    // Service.
373
    (
141 ✔
374
        alias(daemon_variable, 'd').c_str(),
94 ✔
375
        value<bool>()->implicit_value(true)->
94 ✔
376
            notifier([&](bool value) { configured.daemon = value; }),
94 ✔
377
        "Install ('true') or uninstall ('false') as a daemon."
378
    )
379
    (
141 ✔
380
        alias(user_variable, 'u').c_str(),
94 ✔
381
        value<network::config::credential>()->
382
            notifier([&](const network::config::credential& value)
94 ✔
UNCOV
383
                { configured.user = value; }),
×
384
        "Daemon logon credential, defaults to system account."
385
    )
386
    // Chain scans.
387
    (
141 ✔
388
        alias(flags_variable, 'f').c_str(),
94 ✔
389
        value<bool>(&configured.flags)->
390
            default_value(false)->zero_tokens(),
94 ✔
391
        "Scan and display all flag transitions."
392
    )
393
    (
141 ✔
394
        alias(buckets_variable, 'k').c_str(),
94 ✔
395
        value<bool>(&configured.buckets)->
396
            default_value(false)->zero_tokens(),
94 ✔
397
        "Scan and display hashmap bucket fill."
398
    )
399
    (
141 ✔
400
        alias(collisions_variable, 'l').c_str(),
94 ✔
401
        value<bool>(&configured.collisions)->
402
            default_value(false)->zero_tokens(),
94 ✔
403
        "Scan and show hashmap collision stats (may SIGKILL)."
404
    )
405
    (
141 ✔
406
        alias(information_variable, 'i').c_str(),
94 ✔
407
        value<bool>(&configured.information)->
408
            default_value(false)->zero_tokens(),
94 ✔
409
        "Scan and display store information."
410
    );
411

412
#if defined(HAVE_SELF_TESTS)
413
    description.add_options()
414
    // Ad-hoc Testing.
415
    (
416
        alias(get_variable, 'g').c_str(),
417
        value<config::hash256>(&configured.get)->
418
            default_value(system::null_hash),
419
        "Run built-in read test and display."
420
    )
421
    (
422
        alias(put_variable, 'p').c_str(),
423
        value<config::hash256>(&configured.put)->
424
            default_value(system::null_hash),
425
        "Run built-in write test and display."
426
    );
427
#endif
428

429
    return description;
47 ✔
UNCOV
430
}
×
431

432
arguments_metadata parser::load_arguments() THROWS
47 ✔
433
{
434
    // There are no positional arguments, the config path requires --config.
435
    return arguments_metadata{};
47 ✔
436
}
437

UNCOV
438
options_metadata parser::load_environment() THROWS
×
439
{
UNCOV
440
    options_metadata description("environment");
×
441
    description.add_options()
×
442
    (
×
443
        // For some reason po requires this to be a lower case name. Case must
444
        // match other declarations for it to compose. Composes with cmdline
445
        // options and inits to default path.
446
        config_variable,
UNCOV
447
        value<config::path>(&configured.file)->composing()
×
448
            /*->default_value(config_default_path())*/,
449
        "The path to the configuration settings file."
450
    );
451

UNCOV
452
    return description;
×
453
}
×
454

455
options_metadata parser::load_settings() THROWS
45 ✔
456
{
457
    options_metadata description("settings");
45 ✔
458
    description.add_options()
45 ✔
459

460
    /* [folders] */
461
    (
135 ✔
462
        "folders.root",
463
        setting<config::path>(&configured.server.path),
45 ✔
464
        "The base of the network-named directory, defaults to the working directory."
465
    )
466
    (
135 ✔
467
        "folders.peers",
468
        setting<config::path>(&configured.network.path),
45 ✔
469
        "The peer address cache directory, relative to the network directory, defaults to it."
470
    )
471
    (
135 ✔
472
        "folders.events",
473
        setting<config::path>(&configured.log.events_path),
45 ✔
474
        "The events log directory, relative to the network directory, defaults to it."
475
    )
476
    (
135 ✔
477
        "folders.console",
478
        setting<config::path>(&configured.log.console_path),
45 ✔
479
        "The console log files directory, relative to the network directory, defaults to it."
480
    )
481
    (
135 ✔
482
        "folders.store",
483
        setting<config::path>(&configured.database.path),
45 ✔
484
        "The store directory, relative to the network directory, defaults to 'store'."
485
    )
486
    (
135 ✔
487
        "folders.admin",
488
        setting<config::path>(&configured.server.admin.path),
45 ✔
489
        "The admin web site directory, relative to the network directory, defaults to embedded pages."
490
    )
491
    (
135 ✔
492
        "folders.native",
493
        setting<config::path>(&configured.server.native.path),
45 ✔
494
        "The native web site directory, relative to the network directory, defaults to embedded pages."
495
    )
496
#if defined (HAVE_WINDOWS)
497
    (
498
        "folders.symbols",
499
        setting<config::path>(&configured.log.symbols_path),
500
        "The windows symbols (.pdb) directory, relative to the network directory, defaults to {}."
501
    )
502
#endif
503

504
    /* [forks] */
505
    (
135 ✔
506
        "forks.difficult",
507
        setting<bool>(&configured.bitcoin.forks.difficult),
45 ✔
508
        "Require difficult blocks, defaults to {} (use false for testnet)."
509
    )
510
    (
135 ✔
511
        "forks.retarget",
512
        setting<bool>(&configured.bitcoin.forks.retarget),
45 ✔
513
        "Retarget difficulty, defaults to {} (use false for regtest)."
514
    )
515
    (
135 ✔
516
        "forks.bip16",
517
        setting<bool>(&configured.bitcoin.forks.bip16),
45 ✔
518
        "Add pay-to-script-hash processing, defaults to {} (soft fork)."
519
    )
520
    (
135 ✔
521
        "forks.bip30",
522
        setting<bool>(&configured.bitcoin.forks.bip30),
45 ✔
523
        "Disallow collision of unspent transaction hashes, defaults to {} (soft fork)."
524
    )
525
    (
135 ✔
526
        "forks.bip34",
527
        setting<bool>(&configured.bitcoin.forks.bip34),
45 ✔
528
        "Require coinbase input includes block height, defaults to {} (soft fork)."
529
    )
530
    (
135 ✔
531
        "forks.bip42",
532
        setting<bool>(&configured.bitcoin.forks.bip42),
45 ✔
533
        "Finite monetary supply, defaults to {} (soft fork)."
534
    )
535
    (
135 ✔
536
        "forks.bip66",
537
        setting<bool>(&configured.bitcoin.forks.bip66),
45 ✔
538
        "Require strict signature encoding, defaults to {} (soft fork)."
539
    )
540
    (
135 ✔
541
        "forks.bip65",
542
        setting<bool>(&configured.bitcoin.forks.bip65),
45 ✔
543
        "Add check-locktime-verify op code, defaults to {} (soft fork)."
544
    )
545
    (
135 ✔
546
        "forks.bip90",
547
        setting<bool>(&configured.bitcoin.forks.bip90),
45 ✔
548
        "Freeze bip34, bip65, and bip66 activation at the bip90 heights, defaults to {} (hard fork)."
549
    )
550
    (
135 ✔
551
        "forks.bip68",
552
        setting<bool>(&configured.bitcoin.forks.bip68),
45 ✔
553
        "Add relative locktime enforcement, defaults to {} (soft fork)."
554
    )
555
    (
135 ✔
556
        "forks.bip112",
557
        setting<bool>(&configured.bitcoin.forks.bip112),
45 ✔
558
        "Add check-sequence-verify op code, defaults to {} (soft fork)."
559
    )
560
    (
135 ✔
561
        "forks.bip113",
562
        setting<bool>(&configured.bitcoin.forks.bip113),
45 ✔
563
        "Use median time past for locktime, defaults to {} (soft fork)."
564
    )
565
    (
135 ✔
566
        "forks.bip141",
567
        setting<bool>(&configured.bitcoin.forks.bip141),
45 ✔
568
        "Segregated witness consensus layer, defaults to {} (soft fork)."
569
    )
570
    (
135 ✔
571
        "forks.bip143",
572
        setting<bool>(&configured.bitcoin.forks.bip143),
45 ✔
573
        "Witness version 0 (segwit), defaults to {} (soft fork)."
574
    )
575
    (
135 ✔
576
        "forks.bip147",
577
        setting<bool>(&configured.bitcoin.forks.bip147),
45 ✔
578
        "Prevent dummy value malleability, defaults to {} (soft fork)."
579
    )
580
    (
135 ✔
581
        "forks.bip341",
582
        setting<bool>(&configured.bitcoin.forks.bip341),
45 ✔
583
        "Witness version 1 (taproot), defaults to {} (soft fork)."
584
    )
585
    (
135 ✔
586
        "forks.bip342",
587
        setting<bool>(&configured.bitcoin.forks.bip342),
45 ✔
588
        "Validation of taproot script, defaults to {} (soft fork)."
589
    )
590
    (
135 ✔
591
        "forks.bip54_timewarp",
592
        setting<bool>(&configured.bitcoin.forks.bip54_timewarp),
45 ✔
593
        "Limit timestamp regression on retarget blocks, defaults to {} (soft fork)."
594
    )
595
    (
135 ✔
596
        "forks.bip54_timespan",
597
        setting<bool>(&configured.bitcoin.forks.bip54_timespan),
45 ✔
598
        "Require non-negative retarget timespans, defaults to {} (soft fork)."
599
    )
600
    (
135 ✔
601
        "forks.bip54_sigops",
602
        setting<bool>(&configured.bitcoin.forks.bip54_sigops),
45 ✔
603
        "Limit legacy signature operations per transaction, defaults to {} (soft fork)."
604
    )
605
    (
135 ✔
606
        "forks.bip54_txsize",
607
        setting<bool>(&configured.bitcoin.forks.bip54_txsize),
45 ✔
608
        "Disallow 64 byte witness-stripped transactions, defaults to {} (soft fork)."
609
    )
610
    (
135 ✔
611
        "forks.bip54_coinbase",
612
        setting<bool>(&configured.bitcoin.forks.bip54_coinbase),
45 ✔
613
        "Require coinbase locktime of parent height and non-final sequence, defaults to {} (soft fork)."
614
    )
615
    (
135 ✔
616
        "forks.time_warp_patch",
617
        setting<bool>(&configured.bitcoin.forks.time_warp_patch),
45 ✔
618
        "Assume time_warp_patch activation if enabled, defaults to {} (testnet4)."
619
    )
620
    (
135 ✔
621
        "forks.block_storm_patch",
622
        setting<bool>(&configured.bitcoin.forks.block_storm_patch),
45 ✔
623
        "Assume block_storm_patch activation if enabled, defaults to {} (testnet4)."
624
    )
625
    (
135 ✔
626
        "forks.signet",
627
        setting<bool>(&configured.bitcoin.forks.signet),
45 ✔
628
        "Require signet block solutions, defaults to {} (signet)."
629
    )
630
    (
135 ✔
631
        "forks.ltc_time_warp_patch",
632
        setting<bool>(&configured.bitcoin.forks.ltc_time_warp_patch),
45 ✔
633
        "Fix time warp bug, defaults to {} (litecoin)."
634
    )
635
    (
135 ✔
636
        "forks.ltc_retarget_overflow_patch",
637
        setting<bool>(&configured.bitcoin.forks.ltc_retarget_overflow_patch),
45 ✔
638
        "Fix target overflow for very low difficulty, defaults to {} (litecoin)."
639
    )
640
    (
135 ✔
641
        "forks.ltc_scrypt_proof_of_work",
642
        setting<bool>(&configured.bitcoin.forks.ltc_scrypt_proof_of_work),
45 ✔
643
        "Use scrypt hashing for proof of work, defaults to {} (litecoin)."
644
    )
645

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

956
    /* [network] */
957
    (
135 ✔
958
        "network.threads",
959
        setting<uint32_t>(&configured.network.threads),
45 ✔
960
        "The minimum number of threads in the network threadpool, defaults to {} (hardware threads, at most 32)."
961
    )
962
    (
135 ✔
963
        "network.retry_timeout_seconds",
964
        setting<uint32_t>(&configured.network.retry_timeout_seconds),
45 ✔
965
        "The time delay for failed connection retry, defaults to {}."
966
    )
967
    (
135 ✔
968
        "network.connect_timeout_seconds",
969
        setting<uint32_t>(&configured.network.connect_timeout_seconds),
45 ✔
970
        "The time limit for connection establishment, defaults to {}."
971
    )
972
    (
135 ✔
973
        "network.rate_limit",
974
        setting<uint32_t>(&configured.network.rate_limit),
45 ✔
975
        "The per channel send rate limit in bytes per second, defaults to {} (unlimited)."
976
    )
977
    (
135 ✔
978
        "network.blacklist",
979
        setting<network::config::authorities>(&configured.network.blacklists),
45 ✔
980
        "IP address to disallow, allows all others, multiple allowed."
981
    )
982
    (
135 ✔
983
        "network.whitelist",
984
        setting<network::config::authorities>(&configured.network.whitelists),
45 ✔
985
        "IP address to allow, prohibits all others, multiple allowed."
986
    )
987

988
    /* [peer] */
989
    (
135 ✔
990
        "peer.address_upper",
991
        setting<uint16_t>(&configured.network.address_upper),
45 ✔
992
        "The upper bound for address selection divisor, defaults to {}."
993
    )
994
    (
135 ✔
995
        "peer.address_lower",
996
        setting<uint16_t>(&configured.network.address_lower),
45 ✔
997
        "The lower bound for address selection divisor, defaults to {}."
998
    )
999
    (
135 ✔
1000
        "peer.protocol_maximum",
1001
        setting<uint32_t>(&configured.network.protocol_maximum),
45 ✔
1002
        "The maximum network protocol version, defaults to {}."
1003
    )
1004
    (
135 ✔
1005
        "peer.protocol_minimum",
1006
        setting<uint32_t>(&configured.network.protocol_minimum),
45 ✔
1007
        "The minimum network protocol version, defaults to {}."
1008
    )
1009
    (
135 ✔
1010
        "peer.invalid_services",
1011
        setting<uint64_t>(&configured.network.invalid_services),
45 ✔
1012
        "The advertised services that cause a peer to be dropped, defaults to {}."
1013
    )
1014
    (
135 ✔
1015
        "peer.enable_address",
1016
        setting<bool>(&configured.network.enable_address),
45 ✔
1017
        "Enable address gossip, defaults to {}."
1018
    )
1019
    (
135 ✔
1020
        "peer.enable_address_v2",
1021
        setting<bool>(&configured.network.enable_address_v2),
45 ✔
1022
        "Enable privacy network (Tor and I2P) address gossip, defaults to {}."
1023
    )
1024
    (
135 ✔
1025
        "peer.enable_witness_tx",
1026
        setting<bool>(&configured.network.enable_witness_tx),
45 ✔
1027
        "Enable witness transaction identifier relay, defaults to {}."
1028
    )
1029
    (
135 ✔
1030
        "peer.enable_compact",
1031
        setting<bool>(&configured.network.enable_compact),
45 ✔
1032
        "Enable compact block messages, defaults to {}."
1033
    )
1034
    (
135 ✔
1035
        "peer.enable_alert",
1036
        setting<bool>(&configured.network.enable_alert),
45 ✔
1037
        "Enable alert messages, defaults to {}."
1038
    )
1039
    (
135 ✔
1040
        "peer.enable_reject",
1041
        setting<bool>(&configured.network.enable_reject),
45 ✔
1042
        "Enable reject messages, defaults to {}."
1043
    )
1044
    (
135 ✔
1045
        "peer.enable_not_found",
1046
        setting<bool>(&configured.network.enable_not_found),
45 ✔
1047
        "Enable not found messages, defaults to {}."
1048
    )
1049
    (
135 ✔
1050
        "peer.enable_memory_pool",
1051
        setting<bool>(&configured.network.enable_memory_pool),
45 ✔
1052
        "Enable memory pool messages, defaults to {}."
1053
    )
1054
    (
135 ✔
1055
        "peer.enable_relay",
1056
        setting<bool>(&configured.network.enable_relay),
45 ✔
1057
        "Enable transaction relay, defaults to {}."
1058
    )
1059
    (
135 ✔
1060
        "peer.validate_checksum",
1061
        setting<bool>(&configured.network.validate_checksum),
45 ✔
1062
        "Validate the checksum of network messages, defaults to {}."
1063
    )
1064
    (
135 ✔
1065
        "peer.gossip_ipv4",
1066
        setting<bool>(&configured.network.gossip_ipv4),
45 ✔
1067
        "Gossip internet protocol version 4 (IPv4) addresses, defaults to {}."
1068
    )
1069
    (
135 ✔
1070
        "peer.gossip_ipv6",
1071
        setting<bool>(&configured.network.gossip_ipv6),
45 ✔
1072
        "Gossip internet protocol version 6 (IPv6) addresses, defaults to {}."
1073
    )
1074
    (
135 ✔
1075
        "peer.gossip_tor",
1076
        setting<bool>(&configured.network.gossip_tor),
45 ✔
1077
        "Gossip tor (onion) addresses, defaults to {}."
1078
    )
1079
    (
135 ✔
1080
        "peer.gossip_i2p",
1081
        setting<bool>(&configured.network.gossip_i2p),
45 ✔
1082
        "Gossip i2p addresses, defaults to {}."
1083
    )
1084
    (
135 ✔
1085
        "peer.identifier",
1086
        setting<uint32_t>(&configured.network.identifier),
45 ✔
1087
        "The magic number for message headers, defaults to {}."
1088
    )
1089
    (
135 ✔
1090
        "peer.handshake_timeout_seconds",
1091
        setting<uint32_t>(&configured.network.handshake_timeout_seconds),
45 ✔
1092
        "The time limit to complete the connection handshake, defaults to {} (0 disables)."
1093
    )
1094
    (
135 ✔
1095
        "peer.channel_heartbeat_minutes",
1096
        setting<uint32_t>(&configured.network.channel_heartbeat_minutes),
45 ✔
1097
        "The time between ping messages, defaults to {} (0 disables)."
1098
    )
1099
    (
135 ✔
1100
        "peer.maximum_skew_minutes",
1101
        setting<uint32_t>(&configured.network.maximum_skew_minutes),
45 ✔
1102
        "The maximum allowable channel clock skew, defaults to {}."
1103
    )
1104
    (
135 ✔
1105
        "peer.maximum_requests",
1106
        setting<uint32_t>(&configured.network.maximum_requests),
45 ✔
1107
        "Maximum unanswered tx requests of a peer before it is dropped, defaults to {}."
1108
    )
1109
    (
135 ✔
1110
        "peer.request_timeout_seconds",
1111
        setting<uint32_t>(&configured.network.request_timeout_seconds),
45 ✔
1112
        "Seconds a peer has to answer its oldest tx request, defaults to {} (0 disables)."
1113
    )
1114
    (
135 ✔
1115
        "peer.user_agent",
1116
        setting<std::string>(&configured.network.user_agent),
45 ✔
1117
        "The node user agent string, defaults to {}."
1118
    )
1119

1120
    /* [outbound] */
1121
    (
135 ✔
1122
        "outbound.bind",
1123
        setting<network::config::authorities>(&configured.network.outbound.binds),
45 ✔
1124
        "IP address to bind outbound connections, multiple allowed, defaults to {}."
1125
    )
1126
    (
135 ✔
1127
        "outbound.connections",
1128
        setting<uint16_t>(&configured.network.outbound.connections),
45 ✔
1129
        "The target number of outgoing network connections, defaults to {}."
1130
    )
1131
    (
135 ✔
1132
        "outbound.current_connections",
1133
        setting<uint16_t>(&configured.node.current_connections),
45 ✔
1134
        "The target number of outgoing connections when current, defaults to {} (0 disables)."
1135
    )
1136
    (
135 ✔
1137
        "outbound.relay_slots",
1138
        setting<uint16_t>(&configured.node.outbound_relay_slots),
45 ✔
1139
        "The relay slots reserved for outbound peers, defaults to {}."
1140
    )
1141
    (
135 ✔
1142
        "outbound.rate_limit",
1143
        setting<uint32_t>(&configured.network.outbound.rate_limit),
45 ✔
1144
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1145
    )
1146
    (
135 ✔
1147
        "outbound.connect_timeout_seconds",
1148
        setting<uint32_t>(&configured.network.outbound.connect_timeout_seconds),
45 ✔
1149
        "The time limit for connection establishment, defaults to {} (network controls)."
1150
    )
1151
    (
135 ✔
1152
        "outbound.inactivity_minutes",
1153
        setting<uint32_t>(&configured.network.outbound.inactivity_minutes),
45 ✔
1154
        "The inactivity time limit for any connection, defaults to {} (0 disables)."
1155
    )
1156
    (
135 ✔
1157
        "outbound.expiration_minutes",
1158
        setting<uint32_t>(&configured.network.outbound.expiration_minutes),
45 ✔
1159
        "The age limit for any connection, defaults to {} (0 disables)."
1160
    )
1161
    (
135 ✔
1162
        "outbound.minimum_buffer",
1163
        setting<uint32_t>(&configured.network.outbound.minimum_buffer),
45 ✔
1164
        "The minimum retained read buffer size, defaults to {}."
1165
    )
1166
    (
135 ✔
1167
        "outbound.maximum_backlog",
1168
        setting<uint32_t>(&configured.network.outbound.maximum_backlog),
45 ✔
1169
        "The maximum write backlog of a channel, defaults to {}."
1170
    )
1171
    (
135 ✔
1172
        "outbound.maximum_request",
1173
        setting<uint32_t>(&configured.network.outbound.maximum_request),
45 ✔
1174
        "The maximum allowed request size, defaults to {}."
1175
    )
1176
    (
135 ✔
1177
        "outbound.seed",
1178
        setting<network::config::endpoints>(&configured.network.outbound.seeds),
45 ✔
1179
        "A seed node for initializing the host pool, multiple allowed."
1180
    )
1181
    (
135 ✔
1182
        "outbound.connect_batch_size",
1183
        setting<uint16_t>(&configured.network.outbound.connect_batch_size),
45 ✔
1184
        "The number of concurrent attempts to establish one connection, defaults to {}."
1185
    )
1186
    (
135 ✔
1187
        "outbound.host_pool_capacity",
1188
        setting<uint32_t>(&configured.network.outbound.host_pool_capacity),
45 ✔
1189
        "The maximum number of peer hosts in the pool, defaults to {}."
1190
    )
1191
    (
135 ✔
1192
        "outbound.seeding_timeout_seconds",
1193
        setting<uint32_t>(&configured.network.outbound.seeding_timeout_seconds),
45 ✔
1194
        "The time limit for obtaining seed connections and addresses, defaults to {}."
1195
    )
1196
    (
135 ✔
1197
        "outbound.username",
1198
        setting<std::string>(&configured.network.outbound.username),
45 ✔
1199
        "The socks5 proxy username (optional)."
1200
    )
1201
    (
135 ✔
1202
        "outbound.password",
1203
        secret<std::string>(&configured.network.outbound.password),
45 ✔
1204
        "The socks5 proxy password (optional)."
1205
    )
1206
    (
135 ✔
1207
        "outbound.socks",
1208
        setting<config::endpoint>(&configured.network.outbound.socks),
45 ✔
1209
        "The socks5 proxy endpoint (port required)."
1210
    )
1211

1212
    /* [inbound] */
1213
    ////(
1214
    ////    "inbound.secure",
1215
    ////    setting<bool>(&configured.network.inbound.secure),
1216
    ////    "Require transport layer security, defaults to {} (not implemented)."
1217
    ////)
1218
    (
135 ✔
1219
        "inbound.bind",
1220
        setting<network::config::authorities>(&configured.network.inbound.binds),
45 ✔
1221
        "IP address to bind for listening, multiple allowed, defaults to {} (all IPv4)."
1222
    )
1223
    (
135 ✔
1224
        "inbound.connections",
1225
        setting<uint16_t>(&configured.network.inbound.connections),
45 ✔
1226
        "The target number of incoming network connections, defaults to {}."
1227
    )
1228
    (
135 ✔
1229
        "inbound.rate_limit",
1230
        setting<uint32_t>(&configured.network.inbound.rate_limit),
45 ✔
1231
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1232
    )
1233
    (
135 ✔
1234
        "inbound.connect_timeout_seconds",
1235
        setting<uint32_t>(&configured.network.inbound.connect_timeout_seconds),
45 ✔
1236
        "The time limit for connection establishment, defaults to {} (network controls)."
1237
    )
1238
    (
135 ✔
1239
        "inbound.inactivity_minutes",
1240
        setting<uint32_t>(&configured.network.inbound.inactivity_minutes),
45 ✔
1241
        "The inactivity time limit for any connection, defaults to {} (0 disables)."
1242
    )
1243
    (
135 ✔
1244
        "inbound.expiration_minutes",
1245
        setting<uint32_t>(&configured.network.inbound.expiration_minutes),
45 ✔
1246
        "The age limit for any connection, defaults to {} (0 disables)."
1247
    )
1248
    (
135 ✔
1249
        "inbound.minimum_buffer",
1250
        setting<uint32_t>(&configured.network.inbound.minimum_buffer),
45 ✔
1251
        "The minimum retained read buffer size, defaults to {}."
1252
    )
1253
    (
135 ✔
1254
        "inbound.maximum_backlog",
1255
        setting<uint32_t>(&configured.network.inbound.maximum_backlog),
45 ✔
1256
        "The maximum write backlog of a channel, defaults to {}."
1257
    )
1258
    (
135 ✔
1259
        "inbound.maximum_request",
1260
        setting<uint32_t>(&configured.network.inbound.maximum_request),
45 ✔
1261
        "The maximum allowed request size, defaults to {}."
1262
    )
1263
    (
135 ✔
1264
        "inbound.enable_loopback",
1265
        setting<bool>(&configured.network.inbound.enable_loopback),
45 ✔
1266
        "Allow connections from the node to itself, defaults to {}."
1267
    )
1268
    (
135 ✔
1269
        "inbound.self",
1270
        setting<network::config::addresses>(&configured.network.inbound.selfs),
45 ✔
1271
        "Address to advertise, multiple allowed."
1272
    )
1273
    (
135 ✔
1274
        "inbound.username",
1275
        setting<std::string>(&configured.network.inbound.username),
45 ✔
1276
        "The sam bridge username (optional)."
1277
    )
1278
    (
135 ✔
1279
        "inbound.password",
1280
        secret<std::string>(&configured.network.inbound.password),
45 ✔
1281
        "The sam bridge password (optional)."
1282
    )
1283
    (
135 ✔
1284
        "inbound.sam",
1285
        setting<config::endpoint>(&configured.network.inbound.bridge),
45 ✔
1286
        "The i2p sam bridge endpoint (port required)."
1287
    )
1288
    (
135 ✔
1289
        "inbound.key_path",
1290
        setting<config::path>(&configured.network.inbound.key_path),
45 ✔
1291
        "The i2p destination private key file path, created if not existing."
1292
    )
1293

1294
    /* [manual] */
1295
    ////(
1296
    ////    "manual.secure",
1297
    ////    setting<bool>(&configured.network.manual.secure),
1298
    ////    "Require transport layer security, defaults to {} (not implemented)."
1299
    ////)
1300
    (
135 ✔
1301
        "manual.bind",
1302
        setting<network::config::authorities>(&configured.network.manual.binds),
45 ✔
1303
        "IP address to bind manual connections, multiple allowed, defaults to {}."
1304
    )
1305
    ////(
1306
    ////    "manual.connections",
1307
    ////    setting<uint16_t>(&configured.network.manual.connections),
1308
    ////    "The target number of outgoing manual connections (not implemented)."
1309
    ////)
1310
    (
135 ✔
1311
        "manual.relay_slots",
1312
        setting<uint16_t>(&configured.node.manual_relay_slots),
45 ✔
1313
        "The relay slots reserved for manual peers, defaults to {}."
1314
    )
1315
    (
135 ✔
1316
        "manual.rate_limit",
1317
        setting<uint32_t>(&configured.network.manual.rate_limit),
45 ✔
1318
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1319
    )
1320
    (
135 ✔
1321
        "manual.connect_timeout_seconds",
1322
        setting<uint32_t>(&configured.network.manual.connect_timeout_seconds),
45 ✔
1323
        "The time limit for connection establishment, defaults to {} (network controls)."
1324
    )
1325
    (
135 ✔
1326
        "manual.inactivity_minutes",
1327
        setting<uint32_t>(&configured.network.manual.inactivity_minutes),
45 ✔
1328
        "The inactivity time limit for any connection, defaults to {} (0 disables, will attempt reconnect)."
1329
    )
1330
    (
135 ✔
1331
        "manual.expiration_minutes",
1332
        setting<uint32_t>(&configured.network.manual.expiration_minutes),
45 ✔
1333
        "The age limit for any connection, defaults to {} (0 disables, will attempt reconnect)."
1334
    )
1335
    (
135 ✔
1336
        "manual.minimum_buffer",
1337
        setting<uint32_t>(&configured.network.manual.minimum_buffer),
45 ✔
1338
        "The minimum retained read buffer size, defaults to {}."
1339
    )
1340
    (
135 ✔
1341
        "manual.maximum_backlog",
1342
        setting<uint32_t>(&configured.network.manual.maximum_backlog),
45 ✔
1343
        "The maximum write backlog of a channel, defaults to {}."
1344
    )
1345
    (
135 ✔
1346
        "manual.maximum_request",
1347
        setting<uint32_t>(&configured.network.manual.maximum_request),
45 ✔
1348
        "The maximum allowed request size, defaults to {}."
1349
    )
1350
    (
135 ✔
1351
        "manual.peer",
1352
        setting<network::config::endpoints>(&configured.network.manual.peers),
45 ✔
1353
        "A persistent peer node, multiple allowed."
1354
    )
1355
    (
135 ✔
1356
        "manual.request_mempool",
1357
        setting<bool>(&configured.network.manual.request_mempool),
45 ✔
1358
        "Request the memory pool of manual peers once relaying, defaults to {}."
1359
    )
1360
    (
135 ✔
1361
        "manual.username",
1362
        setting<std::string>(&configured.network.manual.username),
45 ✔
1363
        "The socks5 proxy username (optional)."
1364
    )
1365
    (
135 ✔
1366
        "manual.password",
1367
        secret<std::string>(&configured.network.manual.password),
45 ✔
1368
        "The socks5 proxy password (optional)."
1369
    )
1370
    (
135 ✔
1371
        "manual.socks",
1372
        setting<config::endpoint>(&configured.network.manual.socks),
45 ✔
1373
        "The socks5 proxy endpoint (port required)."
1374
    )
1375

1376
    /* [wallet] */
1377
    (
135 ✔
1378
        "wallet.p2kh_prefix",
1379
        setting<uint8_t>(&configured.server.wallet.p2kh_prefix),
45 ✔
1380
        "The pay-to-public-key-hash address prefix, defaults to {} (use '111' for testnet)."
1381
    )
1382
    (
135 ✔
1383
        "wallet.p2sh_prefix",
1384
        setting<uint8_t>(&configured.server.wallet.p2sh_prefix),
45 ✔
1385
        "The pay-to-script-hash address prefix, defaults to {} (use '196' for testnet)."
1386
    )
1387
    (
135 ✔
1388
        "wallet.wif_prefix",
1389
        setting<uint8_t>(&configured.server.wallet.wif_prefix),
45 ✔
1390
        "The wallet import format prefix, defaults to {} (use '239' for testnet)."
1391
    )
1392
    (
135 ✔
1393
        "wallet.witness_prefix",
1394
        setting<std::string>(&configured.server.wallet.witness_prefix),
45 ✔
1395
        "The witness address prefix, defaults to {} (use 'tb' for testnet)."
1396
    )
1397
    (
135 ✔
1398
        "wallet.silent_prefix",
1399
        setting<std::string>(&configured.server.wallet.silent_prefix),
45 ✔
1400
        "The silent payment address prefix, defaults to {} (use 'tsp' for testnet)."
1401
    )
1402
    (
135 ✔
1403
        "wallet.hd_private_prefix",
1404
        setting<uint32_t>(&configured.server.wallet.hd_private_prefix),
45 ✔
1405
        "The extended private key prefix, defaults to {} (use '70615956' for testnet)."
1406
    )
1407
    (
135 ✔
1408
        "wallet.hd_public_prefix",
1409
        setting<uint32_t>(&configured.server.wallet.hd_public_prefix),
45 ✔
1410
        "The extended public key prefix, defaults to {} (use '70617039' for testnet)."
1411
    )
1412

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

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

1662
    /* [bitcoind] */
1663
    (
135 ✔
1664
        "bitcoind.bind",
1665
        setting<network::config::authorities>(&configured.server.bitcoind.binds),
45 ✔
1666
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
1667
    )
1668
    (
135 ✔
1669
        "bitcoind.safe",
1670
        setting<network::config::authorities>(&configured.server.bitcoind.safes),
45 ✔
1671
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
1672
    )
1673
    (
135 ✔
1674
        "bitcoind.cert_auth",
1675
        setting<config::path>(&configured.server.bitcoind.cert_auth),
45 ✔
1676
        "The trusted client certificate directory (*.PEM), enables client authentication."
1677
    )
1678
    (
135 ✔
1679
        "bitcoind.cert_path",
1680
        setting<config::path>(&configured.server.bitcoind.cert_path),
45 ✔
1681
        "The path to the server certificate file (.PEM), defaults to {}."
1682
    )
1683
    (
135 ✔
1684
        "bitcoind.key_path",
1685
        setting<config::path>(&configured.server.bitcoind.key_path),
45 ✔
1686
        "The path to the server private key file (.PEM), defaults to {}."
1687
    )
1688
    (
135 ✔
1689
        "bitcoind.key_pass",
1690
        secret<std::string>(&configured.server.bitcoind.key_pass),
45 ✔
1691
        "The password to decrypt the server private key file (.PEM), optional."
1692
    )
1693
    (
135 ✔
1694
        "bitcoind.advertise",
1695
        setting<system::config::urls>(&configured.server.bitcoind.advertise),
45 ✔
1696
        "The public [http|https://]host[:port] url, ws on its port, multiple allowed, defaults to {} (none)."
1697
    )
1698
    (
135 ✔
1699
        "bitcoind.credential",
1700
        secret<network::config::credentials>(&configured.server.bitcoind.credentials),
45 ✔
1701
        "The 'username:password[:method,...]' authorization (not secure), multiple allowed."
1702
    )
1703
    (
135 ✔
1704
        "bitcoind.connections",
1705
        setting<uint16_t>(&configured.server.bitcoind.connections),
45 ✔
1706
        "The required maximum number of connections, defaults to {}."
1707
    )
1708
    (
135 ✔
1709
        "bitcoind.rate_limit",
1710
        setting<uint32_t>(&configured.server.bitcoind.rate_limit),
45 ✔
1711
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1712
    )
1713
    (
135 ✔
1714
        "bitcoind.connect_timeout_seconds",
1715
        setting<uint32_t>(&configured.server.bitcoind.connect_timeout_seconds),
45 ✔
1716
        "The time limit for connection establishment, defaults to {} (network controls)."
1717
    )
1718
    (
135 ✔
1719
        "bitcoind.inactivity_minutes",
1720
        setting<uint32_t>(&configured.server.bitcoind.inactivity_minutes),
45 ✔
1721
        "The idle timeout (http keep-alive), defaults to {}."
1722
    )
1723
    (
135 ✔
1724
        "bitcoind.expiration_minutes",
1725
        setting<uint32_t>(&configured.server.bitcoind.expiration_minutes),
45 ✔
1726
        "The maximum connection duration, defaults to {}."
1727
    )
1728
    (
135 ✔
1729
        "bitcoind.minimum_buffer",
1730
        setting<uint32_t>(&configured.server.bitcoind.minimum_buffer),
45 ✔
1731
        "The minimum retained read buffer size, defaults to {}."
1732
    )
1733
    (
135 ✔
1734
        "bitcoind.maximum_backlog",
1735
        setting<uint32_t>(&configured.server.bitcoind.maximum_backlog),
45 ✔
1736
        "The maximum write backlog of a channel, defaults to {}."
1737
    )
1738
    (
135 ✔
1739
        "bitcoind.maximum_buffer",
1740
        setting<uint32_t>(&configured.server.bitcoind.maximum_buffer),
45 ✔
1741
        "The maximum json response buffer size, defaults to {}."
1742
    )
1743
    (
135 ✔
1744
        "bitcoind.maximum_request",
1745
        setting<uint32_t>(&configured.server.bitcoind.maximum_request),
45 ✔
1746
        "The maximum allowed request size, defaults to {}."
1747
    )
1748
    (
135 ✔
1749
        "bitcoind.server",
1750
        setting<std::string>(&configured.server.bitcoind.server),
45 ✔
1751
        "The server name (http header), defaults to {}."
1752
    )
1753
    (
135 ✔
1754
        "bitcoind.protocol_minimum",
1755
        setting<uint32_t>(&configured.server.bitcoind.protocol_minimum),
45 ✔
1756
        "The minimum interface version (bitcoind version encoding), defaults to {}."
1757
    )
1758
    (
135 ✔
1759
        "bitcoind.protocol_maximum",
1760
        setting<uint32_t>(&configured.server.bitcoind.protocol_maximum),
45 ✔
1761
        "The maximum interface version (bitcoind version encoding), defaults to {}."
1762
    )
1763
    (
135 ✔
1764
        "bitcoind.host",
1765
        setting<network::config::endpoints>(&configured.server.bitcoind.hosts),
45 ✔
1766
        "The host name (http verification), multiple allowed, defaults to {} (disabled)."
1767
    )
1768
    (
135 ✔
1769
        "bitcoind.origin",
1770
        setting<network::config::endpoints>(&configured.server.bitcoind.origins),
45 ✔
1771
        "The allowed origin (see CORS), multiple allowed, defaults to {} (disabled)."
1772
    )
1773
    (
135 ✔
1774
        "bitcoind.allow_opaque_origin",
1775
        setting<bool>(&configured.server.bitcoind.allow_opaque_origin),
45 ✔
1776
        "Allow requests from opaque origin (see CORS), defaults to {}."
1777
    )
1778
    (
135 ✔
1779
        "bitcoind.compression",
1780
        setting<bool>(&configured.server.bitcoind.compression),
45 ✔
1781
        "Compress response bodies as accepted by the request (gzip, deflate), defaults to {}."
1782
    )
1783
    (
135 ✔
1784
        "bitcoind.enable_utxo",
1785
        setting<bool>(&configured.server.bitcoind.enable_utxo),
45 ✔
1786
        "Enable utxo set queries, disabling connection timeouts, defaults to {}."
1787
    )
1788
    (
135 ✔
1789
        "bitcoind.maximum_history",
1790
        setting<uint32_t>(&configured.server.bitcoind.maximum_history),
45 ✔
1791
        "The maximum number of address history entries, defaults to {}."
1792
    )
1793

1794
    /* [zmq] */
1795
    (
135 ✔
1796
        "zmq.bind",
1797
        setting<network::config::authorities>(&configured.server.zmq.binds),
45 ✔
1798
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
1799
    )
1800
    (
135 ✔
1801
        "zmq.safe",
1802
        setting<network::config::authorities>(&configured.server.zmq.safes),
45 ✔
1803
        "IP address to secure (CurveZMQ) bind, multiple allowed, defaults to {} (disabled)."
1804
    )
1805
    (
135 ✔
1806
        "zmq.cert",
1807
        setting<std::vector<config::base85>>(&configured.server.zmq.certs),
45 ✔
1808
        "The Z85 encoded public key of an authorized client, multiple allowed, defaults to {} (all)."
1809
    )
1810
    (
135 ✔
1811
        "zmq.connections",
1812
        setting<uint16_t>(&configured.server.zmq.connections),
45 ✔
1813
        "The required maximum number of connections, defaults to {}."
1814
    )
1815
    (
135 ✔
1816
        "zmq.rate_limit",
1817
        setting<uint32_t>(&configured.server.zmq.rate_limit),
45 ✔
1818
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1819
    )
1820
    (
135 ✔
1821
        "zmq.connect_timeout_seconds",
1822
        setting<uint32_t>(&configured.server.zmq.connect_timeout_seconds),
45 ✔
1823
        "The time limit for connection establishment, defaults to {} (network controls)."
1824
    )
1825
    (
135 ✔
1826
        "zmq.minimum_buffer",
1827
        setting<uint32_t>(&configured.server.zmq.minimum_buffer),
45 ✔
1828
        "The minimum retained read buffer size, defaults to {}."
1829
    )
1830
    (
135 ✔
1831
        "zmq.maximum_backlog",
1832
        setting<uint32_t>(&configured.server.zmq.maximum_backlog),
45 ✔
1833
        "The maximum write backlog of a channel, defaults to {}."
1834
    )
1835
    (
135 ✔
1836
        "zmq.maximum_request",
1837
        setting<uint32_t>(&configured.server.zmq.maximum_request),
45 ✔
1838
        "The maximum allowed request size, defaults to {}."
1839
    )
1840
    (
135 ✔
1841
        "zmq.maximum_subscriptions",
1842
        setting<uint32_t>(&configured.server.zmq.maximum_subscriptions),
45 ✔
1843
        "The maximum topic subscriptions per connection, defaults to {}."
1844
    )
1845
    (
135 ✔
1846
        "zmq.key",
1847
        secret<config::base85>(&configured.server.zmq.key),
45 ✔
1848
        "The Z85 encoded CurveZMQ server secret key, defaults to none (unencrypted)."
1849
    )
1850

1851
    /* [btcd] */
1852
    (
135 ✔
1853
        "btcd.bind",
1854
        setting<network::config::authorities>(&configured.server.btcd.binds),
45 ✔
1855
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
1856
    )
1857
    (
135 ✔
1858
        "btcd.safe",
1859
        setting<network::config::authorities>(&configured.server.btcd.safes),
45 ✔
1860
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
1861
    )
1862
    (
135 ✔
1863
        "btcd.cert_auth",
1864
        setting<config::path>(&configured.server.btcd.cert_auth),
45 ✔
1865
        "The trusted client certificate directory (*.PEM), enables client authentication."
1866
    )
1867
    (
135 ✔
1868
        "btcd.cert_path",
1869
        setting<config::path>(&configured.server.btcd.cert_path),
45 ✔
1870
        "The path to the server certificate file (.PEM), defaults to {}."
1871
    )
1872
    (
135 ✔
1873
        "btcd.key_path",
1874
        setting<config::path>(&configured.server.btcd.key_path),
45 ✔
1875
        "The path to the server private key file (.PEM), defaults to {}."
1876
    )
1877
    (
135 ✔
1878
        "btcd.key_pass",
1879
        secret<std::string>(&configured.server.btcd.key_pass),
45 ✔
1880
        "The password to decrypt the server private key file (.PEM), optional."
1881
    )
1882
    (
135 ✔
1883
        "btcd.advertise",
1884
        setting<system::config::urls>(&configured.server.btcd.advertise),
45 ✔
1885
        "The public [http|https://]host[:port] url, ws on its port, multiple allowed, defaults to {} (none)."
1886
    )
1887
    (
135 ✔
1888
        "btcd.credential",
1889
        secret<network::config::credentials>(&configured.server.btcd.credentials),
45 ✔
1890
        "The 'username:password[:method,...]' authorization (not secure), multiple allowed."
1891
    )
1892
    (
135 ✔
1893
        "btcd.connections",
1894
        setting<uint16_t>(&configured.server.btcd.connections),
45 ✔
1895
        "The required maximum number of connections, defaults to {}."
1896
    )
1897
    (
135 ✔
1898
        "btcd.rate_limit",
1899
        setting<uint32_t>(&configured.server.btcd.rate_limit),
45 ✔
1900
        "The send rate limit in bytes per second, defaults to {} (network controls)."
1901
    )
1902
    (
135 ✔
1903
        "btcd.connect_timeout_seconds",
1904
        setting<uint32_t>(&configured.server.btcd.connect_timeout_seconds),
45 ✔
1905
        "The time limit for connection establishment, defaults to {} (network controls)."
1906
    )
1907
    (
135 ✔
1908
        "btcd.inactivity_minutes",
1909
        setting<uint32_t>(&configured.server.btcd.inactivity_minutes),
45 ✔
1910
        "The idle timeout (http/ws keep-alive), defaults to {}."
1911
    )
1912
    (
135 ✔
1913
        "btcd.expiration_minutes",
1914
        setting<uint32_t>(&configured.server.btcd.expiration_minutes),
45 ✔
1915
        "The maximum connection duration, defaults to {}."
1916
    )
1917
    (
135 ✔
1918
        "btcd.minimum_buffer",
1919
        setting<uint32_t>(&configured.server.btcd.minimum_buffer),
45 ✔
1920
        "The minimum retained read buffer size, defaults to {}."
1921
    )
1922
    (
135 ✔
1923
        "btcd.maximum_backlog",
1924
        setting<uint32_t>(&configured.server.btcd.maximum_backlog),
45 ✔
1925
        "The maximum write backlog of a channel, defaults to {}."
1926
    )
1927
    (
135 ✔
1928
        "btcd.maximum_buffer",
1929
        setting<uint32_t>(&configured.server.btcd.maximum_buffer),
45 ✔
1930
        "The maximum json response buffer size, defaults to {}."
1931
    )
1932
    (
135 ✔
1933
        "btcd.maximum_request",
1934
        setting<uint32_t>(&configured.server.btcd.maximum_request),
45 ✔
1935
        "The maximum allowed request size, defaults to {}."
1936
    )
1937
    (
135 ✔
1938
        "btcd.server",
1939
        setting<std::string>(&configured.server.btcd.server),
45 ✔
1940
        "The server name (http header), defaults to {}."
1941
    )
1942
    (
135 ✔
1943
        "btcd.maximum_filters",
1944
        setting<uint32_t>(&configured.server.btcd.maximum_filters),
45 ✔
1945
        "The maximum number of loadtxfilter watches, defaults to {}."
1946
    )
1947
    (
135 ✔
1948
        "btcd.maximum_history",
1949
        setting<uint32_t>(&configured.server.btcd.maximum_history),
45 ✔
1950
        "The maximum number of address history entries, defaults to {}."
1951
    )
1952
    (
135 ✔
1953
        "btcd.host",
1954
        setting<network::config::endpoints>(&configured.server.btcd.hosts),
45 ✔
1955
        "The host name (http verification), multiple allowed, defaults to {} (disabled)."
1956
    )
1957
    (
135 ✔
1958
        "btcd.origin",
1959
        setting<network::config::endpoints>(&configured.server.btcd.origins),
45 ✔
1960
        "The allowed origin (see CORS), multiple allowed, defaults to {} (disabled)."
1961
    )
1962
    (
135 ✔
1963
        "btcd.allow_opaque_origin",
1964
        setting<bool>(&configured.server.btcd.allow_opaque_origin),
45 ✔
1965
        "Allow requests from opaque origin (see CORS), defaults to {}."
1966
    )
1967
    (
135 ✔
1968
        "btcd.compression",
1969
        setting<bool>(&configured.server.btcd.compression),
45 ✔
1970
        "Compress response bodies as accepted by the request (gzip, deflate), defaults to {}."
1971
    )
1972
    (
135 ✔
1973
        "btcd.enable_utxo",
1974
        setting<bool>(&configured.server.btcd.enable_utxo),
45 ✔
1975
        "Enable utxo set queries, disabling connection timeouts, defaults to {}."
1976
    )
1977

1978
    /* [electrum] */
1979
    (
135 ✔
1980
        "electrum.bind",
1981
        setting<network::config::authorities>(&configured.server.electrum.binds),
45 ✔
1982
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
1983
    )
1984
    (
135 ✔
1985
        "electrum.safe",
1986
        setting<network::config::authorities>(&configured.server.electrum.safes),
45 ✔
1987
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
1988
    )
1989
    (
135 ✔
1990
        "electrum.cert_auth",
1991
        setting<config::path>(&configured.server.electrum.cert_auth),
45 ✔
1992
        "The trusted client certificate directory (*.PEM), enables client authentication."
1993
    )
1994
    (
135 ✔
1995
        "electrum.cert_path",
1996
        setting<config::path>(&configured.server.electrum.cert_path),
45 ✔
1997
        "The path to the server certificate file (.PEM), defaults to {}."
1998
    )
1999
    (
135 ✔
2000
        "electrum.key_path",
2001
        setting<config::path>(&configured.server.electrum.key_path),
45 ✔
2002
        "The path to the server private key file (.PEM), defaults to {}."
2003
    )
2004
    (
135 ✔
2005
        "electrum.key_pass",
2006
        secret<std::string>(&configured.server.electrum.key_pass),
45 ✔
2007
        "The password to decrypt the server private key file (.PEM), optional."
2008
    )
2009
    (
135 ✔
2010
        "electrum.advertise",
2011
        setting<system::config::urls>(&configured.server.electrum.advertise),
45 ✔
2012
        "The public [http|https://]host[:port] url, ws on its port, multiple allowed, defaults to {} (none)."
2013
    )
2014
    (
135 ✔
2015
        "electrum.credential",
2016
        secret<network::config::credentials>(&configured.server.electrum.credentials),
45 ✔
2017
        "The 'username:password[:method,...]' authorization (not secure), multiple allowed."
2018
    )
2019
    (
135 ✔
2020
        "electrum.host",
2021
        setting<network::config::endpoints>(&configured.server.electrum.hosts),
45 ✔
2022
        "The host name (http verification), multiple allowed, defaults to {} (disabled)."
2023
    )
2024
    (
135 ✔
2025
        "electrum.origin",
2026
        setting<network::config::endpoints>(&configured.server.electrum.origins),
45 ✔
2027
        "The allowed origin (see CORS), multiple allowed, defaults to {} (disabled)."
2028
    )
2029
    (
135 ✔
2030
        "electrum.allow_opaque_origin",
2031
        setting<bool>(&configured.server.electrum.allow_opaque_origin),
45 ✔
2032
        "Allow requests from opaque origin (see CORS), defaults to {}."
2033
    )
2034
    (
135 ✔
2035
        "electrum.compression",
2036
        setting<bool>(&configured.server.electrum.compression),
45 ✔
2037
        "Compress http response bodies as accepted by the request (gzip, deflate), defaults to {}."
2038
    )
2039
    (
135 ✔
2040
        "electrum.connections",
2041
        setting<uint16_t>(&configured.server.electrum.connections),
45 ✔
2042
        "The required maximum number of connections, defaults to {}."
2043
    )
2044
    (
135 ✔
2045
        "electrum.rate_limit",
2046
        setting<uint32_t>(&configured.server.electrum.rate_limit),
45 ✔
2047
        "The send rate limit in bytes per second, defaults to {} (network controls)."
2048
    )
2049
    (
135 ✔
2050
        "electrum.connect_timeout_seconds",
2051
        setting<uint32_t>(&configured.server.electrum.connect_timeout_seconds),
45 ✔
2052
        "The time limit for connection establishment, defaults to {} (network controls)."
2053
    )
2054
    (
135 ✔
2055
        "electrum.inactivity_minutes",
2056
        setting<uint32_t>(&configured.server.electrum.inactivity_minutes),
45 ✔
2057
        "The idle timeout (http keep-alive), defaults to {}."
2058
    )
2059
    (
135 ✔
2060
        "electrum.expiration_minutes",
2061
        setting<uint32_t>(&configured.server.electrum.expiration_minutes),
45 ✔
2062
        "The maximum connection duration, defaults to {}."
2063
    )
2064
    (
135 ✔
2065
        "electrum.minimum_buffer",
2066
        setting<uint32_t>(&configured.server.electrum.minimum_buffer),
45 ✔
2067
        "The minimum retained read buffer size, defaults to {}."
2068
    )
2069
    (
135 ✔
2070
        "electrum.maximum_backlog",
2071
        setting<uint32_t>(&configured.server.electrum.maximum_backlog),
45 ✔
2072
        "The maximum write backlog of a channel, defaults to {}."
2073
    )
2074
    (
135 ✔
2075
        "electrum.maximum_buffer",
2076
        setting<uint32_t>(&configured.server.electrum.maximum_buffer),
45 ✔
2077
        "The maximum json response buffer size, defaults to {}."
2078
    )
2079
    (
135 ✔
2080
        "electrum.maximum_request",
2081
        setting<uint32_t>(&configured.server.electrum.maximum_request),
45 ✔
2082
        "The maximum allowed request size, defaults to {}."
2083
    )
2084
    (
135 ✔
2085
        "electrum.maximum_headers",
2086
        setting<uint32_t>(&configured.server.electrum.maximum_headers),
45 ✔
2087
        "The maximum allowed headers returned per request, defaults to {}."
2088
    )
2089
    (
135 ✔
2090
        "electrum.maximum_history",
2091
        setting<uint32_t>(&configured.server.electrum.maximum_history),
45 ✔
2092
        "The maximum number of address history entries upon one subscription, defaults to {}."
2093
    )
2094
    (
135 ✔
2095
        "electrum.maximum_subscriptions",
2096
        setting<uint32_t>(&configured.server.electrum.maximum_subscriptions),
45 ✔
2097
        "The maximum allowed address subscriptions per channel, defaults to {}."
2098
    )
2099
    (
135 ✔
2100
        "electrum.ping_interval_seconds",
2101
        setting<uint32_t>(&configured.server.electrum.ping_interval_seconds),
45 ✔
2102
        "The seconds between unrequested pings, defaults to {} (disabled)."
2103
    )
2104
    (
135 ✔
2105
        "electrum.ping_size",
2106
        setting<uint32_t>(&configured.server.electrum.ping_size),
45 ✔
2107
        "The hex characters of unrequested ping data, defaults to {}."
2108
    )
2109
    (
135 ✔
2110
        "electrum.protocol_minimum",
2111
        setting<version>(&configured.server.electrum.protocol_minimum),
45 ✔
2112
        "Minimum protocol version, defaults to {}."
2113
    )
2114
    (
135 ✔
2115
        "electrum.protocol_maximum",
2116
        setting<version>(&configured.server.electrum.protocol_maximum),
45 ✔
2117
        "Maximum protocol version, defaults to {}."
2118
    )
2119
    (
135 ✔
2120
        "electrum.server_name",
2121
        setting<std::string>(&configured.server.electrum.server_name),
45 ✔
2122
        "String returned by server.version, defaults to {}."
2123
    )
2124
    (
135 ✔
2125
        "electrum.donation_address",
2126
        setting<std::string>(&configured.server.electrum.donation_address),
45 ✔
2127
        "String returned by server.donation_address, defaults to {}."
2128
    )
2129
    (
135 ✔
2130
        "electrum.banner_message",
2131
        setting<std::string>(&configured.server.electrum.banner_message),
45 ✔
2132
        "String returned by server.banner, defaults to {}."
2133
    )
2134
    (
135 ✔
2135
        "electrum.self_bind",
2136
        setting<network::config::endpoints>(&configured.server.electrum.self_binds),
45 ✔
2137
        "Advertised host:port at which this server can be reached (defaults to {})."
2138
    )
2139
    (
135 ✔
2140
        "electrum.self_safe",
2141
        setting<network::config::endpoints>(&configured.server.electrum.self_safes),
45 ✔
2142
        "Advertised secure host:port at which this server can be reached (defaults to {})."
2143
    )
2144
    (
135 ✔
2145
        "electrum.more_bind",
2146
        setting<network::config::endpoints>(&configured.server.electrum.more_binds),
45 ✔
2147
        "Advertised host:port at which another server can be reached (defaults to {})."
2148
    )
2149
    (
135 ✔
2150
        "electrum.more_safe",
2151
        setting<network::config::endpoints>(&configured.server.electrum.more_safes),
45 ✔
2152
        "Advertised secure host:port at which another server can be reached (defaults to {})."
2153
    )
2154

2155
    /* [sparrow] */
2156
    (
135 ✔
2157
        "sparrow.bind",
2158
        setting<network::config::authorities>(&configured.server.sparrow.binds),
45 ✔
2159
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
2160
    )
2161
    (
135 ✔
2162
        "sparrow.safe",
2163
        setting<network::config::authorities>(&configured.server.sparrow.safes),
45 ✔
2164
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
2165
    )
2166
    (
135 ✔
2167
        "sparrow.cert_auth",
2168
        setting<config::path>(&configured.server.sparrow.cert_auth),
45 ✔
2169
        "The trusted client certificate directory (*.PEM), enables client authentication."
2170
    )
2171
    (
135 ✔
2172
        "sparrow.cert_path",
2173
        setting<config::path>(&configured.server.sparrow.cert_path),
45 ✔
2174
        "The path to the server certificate file (.PEM), defaults to {}."
2175
    )
2176
    (
135 ✔
2177
        "sparrow.key_path",
2178
        setting<config::path>(&configured.server.sparrow.key_path),
45 ✔
2179
        "The path to the server private key file (.PEM), defaults to {}."
2180
    )
2181
    (
135 ✔
2182
        "sparrow.key_pass",
2183
        secret<std::string>(&configured.server.sparrow.key_pass),
45 ✔
2184
        "The password to decrypt the server private key file (.PEM), optional."
2185
    )
2186
    (
135 ✔
2187
        "sparrow.advertise",
2188
        setting<system::config::urls>(&configured.server.sparrow.advertise),
45 ✔
2189
        "The public [http|https://]host[:port] url, ws on its port, multiple allowed, defaults to {} (none)."
2190
    )
2191
    (
135 ✔
2192
        "sparrow.credential",
2193
        secret<network::config::credentials>(&configured.server.sparrow.credentials),
45 ✔
2194
        "The 'username:password[:method,...]' authorization (not secure), multiple allowed."
2195
    )
2196
    (
135 ✔
2197
        "sparrow.host",
2198
        setting<network::config::endpoints>(&configured.server.sparrow.hosts),
45 ✔
2199
        "The host name (http verification), multiple allowed, defaults to {} (disabled)."
2200
    )
2201
    (
135 ✔
2202
        "sparrow.origin",
2203
        setting<network::config::endpoints>(&configured.server.sparrow.origins),
45 ✔
2204
        "The allowed origin (see CORS), multiple allowed, defaults to {} (disabled)."
2205
    )
2206
    (
135 ✔
2207
        "sparrow.allow_opaque_origin",
2208
        setting<bool>(&configured.server.sparrow.allow_opaque_origin),
45 ✔
2209
        "Allow requests from opaque origin (see CORS), defaults to {}."
2210
    )
2211
    (
135 ✔
2212
        "sparrow.compression",
2213
        setting<bool>(&configured.server.sparrow.compression),
45 ✔
2214
        "Compress http response bodies as accepted by the request (gzip, deflate), defaults to {}."
2215
    )
2216
    (
135 ✔
2217
        "sparrow.connections",
2218
        setting<uint16_t>(&configured.server.sparrow.connections),
45 ✔
2219
        "The required maximum number of connections, defaults to {}."
2220
    )
2221
    (
135 ✔
2222
        "sparrow.rate_limit",
2223
        setting<uint32_t>(&configured.server.sparrow.rate_limit),
45 ✔
2224
        "The send rate limit in bytes per second, defaults to {} (network controls)."
2225
    )
2226
    (
135 ✔
2227
        "sparrow.connect_timeout_seconds",
2228
        setting<uint32_t>(&configured.server.sparrow.connect_timeout_seconds),
45 ✔
2229
        "The time limit for connection establishment, defaults to {} (network controls)."
2230
    )
2231
    (
135 ✔
2232
        "sparrow.inactivity_minutes",
2233
        setting<uint32_t>(&configured.server.sparrow.inactivity_minutes),
45 ✔
2234
        "The idle timeout (http keep-alive), defaults to {}."
2235
    )
2236
    (
135 ✔
2237
        "sparrow.expiration_minutes",
2238
        setting<uint32_t>(&configured.server.sparrow.expiration_minutes),
45 ✔
2239
        "The maximum connection duration, defaults to {}."
2240
    )
2241
    (
135 ✔
2242
        "sparrow.minimum_buffer",
2243
        setting<uint32_t>(&configured.server.sparrow.minimum_buffer),
45 ✔
2244
        "The minimum retained read buffer size, defaults to {}."
2245
    )
2246
    (
135 ✔
2247
        "sparrow.maximum_backlog",
2248
        setting<uint32_t>(&configured.server.sparrow.maximum_backlog),
45 ✔
2249
        "The maximum write backlog of a channel, defaults to {}."
2250
    )
2251
    (
135 ✔
2252
        "sparrow.maximum_buffer",
2253
        setting<uint32_t>(&configured.server.sparrow.maximum_buffer),
45 ✔
2254
        "The maximum json response buffer size, defaults to {}."
2255
    )
2256
    (
135 ✔
2257
        "sparrow.maximum_request",
2258
        setting<uint32_t>(&configured.server.sparrow.maximum_request),
45 ✔
2259
        "The maximum allowed request size, defaults to {}."
2260
    )
2261
    (
135 ✔
2262
        "sparrow.maximum_headers",
2263
        setting<uint32_t>(&configured.server.sparrow.maximum_headers),
45 ✔
2264
        "The maximum allowed headers returned per request, defaults to {}."
2265
    )
2266
    (
135 ✔
2267
        "sparrow.maximum_history",
2268
        setting<uint32_t>(&configured.server.sparrow.maximum_history),
45 ✔
2269
        "The maximum number of address history entries upon one subscription, defaults to {}."
2270
    )
2271
    (
135 ✔
2272
        "sparrow.maximum_subscriptions",
2273
        setting<uint32_t>(&configured.server.sparrow.maximum_subscriptions),
45 ✔
2274
        "The maximum allowed address subscriptions per channel, defaults to {}."
2275
    )
2276
    (
135 ✔
2277
        "sparrow.ping_interval_seconds",
2278
        setting<uint32_t>(&configured.server.sparrow.ping_interval_seconds),
45 ✔
2279
        "The seconds between unrequested pings, defaults to {} (disabled)."
2280
    )
2281
    (
135 ✔
2282
        "sparrow.ping_size",
2283
        setting<uint32_t>(&configured.server.sparrow.ping_size),
45 ✔
2284
        "The hex characters of unrequested ping data, defaults to {}."
2285
    )
2286
    (
135 ✔
2287
        "sparrow.protocol_minimum",
2288
        setting<version>(&configured.server.sparrow.protocol_minimum),
45 ✔
2289
        "Minimum protocol version, defaults to {}."
2290
    )
2291
    (
135 ✔
2292
        "sparrow.protocol_maximum",
2293
        setting<version>(&configured.server.sparrow.protocol_maximum),
45 ✔
2294
        "Maximum protocol version, defaults to {}."
2295
    )
2296
    (
135 ✔
2297
        "sparrow.server_name",
2298
        setting<std::string>(&configured.server.sparrow.server_name),
45 ✔
2299
        "String returned by server.version, defaults to {}."
2300
    )
2301
    (
135 ✔
2302
        "sparrow.donation_address",
2303
        setting<std::string>(&configured.server.sparrow.donation_address),
45 ✔
2304
        "String returned by server.donation_address, defaults to {}."
2305
    )
2306
    (
135 ✔
2307
        "sparrow.banner_message",
2308
        setting<std::string>(&configured.server.sparrow.banner_message),
45 ✔
2309
        "String returned by server.banner, defaults to {}."
2310
    )
2311
    (
135 ✔
2312
        "sparrow.self_bind",
2313
        setting<network::config::endpoints>(&configured.server.sparrow.self_binds),
45 ✔
2314
        "Advertised host:port at which this server can be reached (defaults to {})."
2315
    )
2316
    (
135 ✔
2317
        "sparrow.self_safe",
2318
        setting<network::config::endpoints>(&configured.server.sparrow.self_safes),
45 ✔
2319
        "Advertised secure host:port at which this server can be reached (defaults to {})."
2320
    )
2321
    (
135 ✔
2322
        "sparrow.more_bind",
2323
        setting<network::config::endpoints>(&configured.server.sparrow.more_binds),
45 ✔
2324
        "Advertised host:port at which another server can be reached (defaults to {})."
2325
    )
2326
    (
135 ✔
2327
        "sparrow.more_safe",
2328
        setting<network::config::endpoints>(&configured.server.sparrow.more_safes),
45 ✔
2329
        "Advertised secure host:port at which another server can be reached (defaults to {})."
2330
    )
2331
    /* [esplora] */
2332
    (
135 ✔
2333
        "esplora.bind",
2334
        setting<network::config::authorities>(&configured.server.esplora.binds),
45 ✔
2335
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
2336
    )
2337
    (
135 ✔
2338
        "esplora.safe",
2339
        setting<network::config::authorities>(&configured.server.esplora.safes),
45 ✔
2340
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
2341
    )
2342
    (
135 ✔
2343
        "esplora.cert_auth",
2344
        setting<config::path>(&configured.server.esplora.cert_auth),
45 ✔
2345
        "The trusted client certificate directory (*.PEM), enables client authentication."
2346
    )
2347
    (
135 ✔
2348
        "esplora.cert_path",
2349
        setting<config::path>(&configured.server.esplora.cert_path),
45 ✔
2350
        "The path to the server certificate file (.PEM), defaults to {}."
2351
    )
2352
    (
135 ✔
2353
        "esplora.key_path",
2354
        setting<config::path>(&configured.server.esplora.key_path),
45 ✔
2355
        "The path to the server private key file (.PEM), defaults to {}."
2356
    )
2357
    (
135 ✔
2358
        "esplora.key_pass",
2359
        secret<std::string>(&configured.server.esplora.key_pass),
45 ✔
2360
        "The password to decrypt the server private key file (.PEM), optional."
2361
    )
2362
    (
135 ✔
2363
        "esplora.advertise",
2364
        setting<system::config::urls>(&configured.server.esplora.advertise),
45 ✔
2365
        "The public [http|https://]host[:port] url, ws on its port, multiple allowed, defaults to {} (none)."
2366
    )
2367
    (
135 ✔
2368
        "esplora.credential",
2369
        secret<network::config::credentials>(&configured.server.esplora.credentials),
45 ✔
2370
        "The 'username:password[:method,...]' authorization (not secure), multiple allowed."
2371
    )
2372
    (
135 ✔
2373
        "esplora.connections",
2374
        setting<uint16_t>(&configured.server.esplora.connections),
45 ✔
2375
        "The required maximum number of connections, defaults to {}."
2376
    )
2377
    (
135 ✔
2378
        "esplora.rate_limit",
2379
        setting<uint32_t>(&configured.server.esplora.rate_limit),
45 ✔
2380
        "The send rate limit in bytes per second, defaults to {} (network controls)."
2381
    )
2382
    (
135 ✔
2383
        "esplora.connect_timeout_seconds",
2384
        setting<uint32_t>(&configured.server.esplora.connect_timeout_seconds),
45 ✔
2385
        "The time limit for connection establishment, defaults to {} (network controls)."
2386
    )
2387
    (
135 ✔
2388
        "esplora.inactivity_minutes",
2389
        setting<uint32_t>(&configured.server.esplora.inactivity_minutes),
45 ✔
2390
        "The idle timeout (http keep-alive), defaults to {}."
2391
    )
2392
    (
135 ✔
2393
        "esplora.expiration_minutes",
2394
        setting<uint32_t>(&configured.server.esplora.expiration_minutes),
45 ✔
2395
        "The maximum connection duration, defaults to {}."
2396
    )
2397
    (
135 ✔
2398
        "esplora.minimum_buffer",
2399
        setting<uint32_t>(&configured.server.esplora.minimum_buffer),
45 ✔
2400
        "The minimum retained read buffer size, defaults to {}."
2401
    )
2402
    (
135 ✔
2403
        "esplora.maximum_backlog",
2404
        setting<uint32_t>(&configured.server.esplora.maximum_backlog),
45 ✔
2405
        "The maximum write backlog of a channel, defaults to {}."
2406
    )
2407
    (
135 ✔
2408
        "esplora.maximum_buffer",
2409
        setting<uint32_t>(&configured.server.esplora.maximum_buffer),
45 ✔
2410
        "The maximum json response buffer size, defaults to {}."
2411
    )
2412
    (
135 ✔
2413
        "esplora.maximum_request",
2414
        setting<uint32_t>(&configured.server.esplora.maximum_request),
45 ✔
2415
        "The maximum allowed request size, defaults to {}."
2416
    )
2417
    (
135 ✔
2418
        "esplora.server",
2419
        setting<std::string>(&configured.server.esplora.server),
45 ✔
2420
        "The server name (http header), defaults to {}."
2421
    )
2422
    (
135 ✔
2423
        "esplora.protocol_version",
2424
        setting<uint32_t>(&configured.server.esplora.protocol_version),
45 ✔
2425
        "The interface version (10000 major, 100 minor, patch), defaults to {}."
2426
    )
2427
    (
135 ✔
2428
        "esplora.maximum_history",
2429
        setting<uint32_t>(&configured.server.esplora.maximum_history),
45 ✔
2430
        "The maximum number of address history entries, defaults to {}."
2431
    )
2432
    (
135 ✔
2433
        "esplora.host",
2434
        setting<network::config::endpoints>(&configured.server.esplora.hosts),
45 ✔
2435
        "The host name (http verification), multiple allowed, defaults to {} (disabled)."
2436
    )
2437
    (
135 ✔
2438
        "esplora.origin",
2439
        setting<network::config::endpoints>(&configured.server.esplora.origins),
45 ✔
2440
        "The allowed origin (see CORS), multiple allowed, defaults to {} (disabled)."
2441
    )
2442
    (
135 ✔
2443
        "esplora.allow_opaque_origin",
2444
        setting<bool>(&configured.server.esplora.allow_opaque_origin),
45 ✔
2445
        "Allow requests from opaque origin (see CORS), defaults to {}."
2446
    )
2447
    (
135 ✔
2448
        "esplora.compression",
2449
        setting<bool>(&configured.server.esplora.compression),
45 ✔
2450
        "Compress response bodies as accepted by the request (gzip, deflate), defaults to {}."
2451
    )
2452
    /* [stratum_v1] */
2453
    (
135 ✔
2454
        "stratum_v1.bind",
2455
        setting<network::config::authorities>(&configured.server.stratum_v1.binds),
45 ✔
2456
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
2457
    )
2458
    (
135 ✔
2459
        "stratum_v1.safe",
2460
        setting<network::config::authorities>(&configured.server.stratum_v1.safes),
45 ✔
2461
        "IP address to secure bind, multiple allowed, defaults to {} (disabled)."
2462
    )
2463
    (
135 ✔
2464
        "stratum_v1.cert_auth",
2465
        setting<config::path>(&configured.server.stratum_v1.cert_auth),
45 ✔
2466
        "The trusted client certificate directory (*.PEM), enables client authentication."
2467
    )
2468
    (
135 ✔
2469
        "stratum_v1.cert_path",
2470
        setting<config::path>(&configured.server.stratum_v1.cert_path),
45 ✔
2471
        "The path to the server certificate file (.PEM), defaults to {}."
2472
    )
2473
    (
135 ✔
2474
        "stratum_v1.key_path",
2475
        setting<config::path>(&configured.server.stratum_v1.key_path),
45 ✔
2476
        "The path to the server private key file (.PEM), defaults to {}."
2477
    )
2478
    (
135 ✔
2479
        "stratum_v1.key_pass",
2480
        secret<std::string>(&configured.server.stratum_v1.key_pass),
45 ✔
2481
        "The password to decrypt the server private key file (.PEM), optional."
2482
    )
2483
    (
135 ✔
2484
        "stratum_v1.advertise",
2485
        setting<system::config::urls>(&configured.server.stratum_v1.advertise),
45 ✔
2486
        "The public [http|https://]host[:port] url, ws on its port, multiple allowed, defaults to {} (none)."
2487
    )
2488
    (
135 ✔
2489
        "stratum_v1.credential",
2490
        secret<network::config::credentials>(&configured.server.stratum_v1.credentials),
45 ✔
2491
        "The 'username:password' authorization (not secure), multiple allowed."
2492
    )
2493
    (
135 ✔
2494
        "stratum_v1.host",
2495
        setting<network::config::endpoints>(&configured.server.stratum_v1.hosts),
45 ✔
2496
        "The host name (http verification), multiple allowed, defaults to {} (disabled)."
2497
    )
2498
    (
135 ✔
2499
        "stratum_v1.origin",
2500
        setting<network::config::endpoints>(&configured.server.stratum_v1.origins),
45 ✔
2501
        "The allowed origin (see CORS), multiple allowed, defaults to {} (disabled)."
2502
    )
2503
    (
135 ✔
2504
        "stratum_v1.allow_opaque_origin",
2505
        setting<bool>(&configured.server.stratum_v1.allow_opaque_origin),
45 ✔
2506
        "Allow requests from opaque origin (see CORS), defaults to {}."
2507
    )
2508
    (
135 ✔
2509
        "stratum_v1.compression",
2510
        setting<bool>(&configured.server.stratum_v1.compression),
45 ✔
2511
        "Compress http response bodies as accepted by the request (gzip, deflate), defaults to {}."
2512
    )
2513
    (
135 ✔
2514
        "stratum_v1.connections",
2515
        setting<uint16_t>(&configured.server.stratum_v1.connections),
45 ✔
2516
        "The required maximum number of connections, defaults to {}."
2517
    )
2518
    (
135 ✔
2519
        "stratum_v1.rate_limit",
2520
        setting<uint32_t>(&configured.server.stratum_v1.rate_limit),
45 ✔
2521
        "The send rate limit in bytes per second, defaults to {} (network controls)."
2522
    )
2523
    (
135 ✔
2524
        "stratum_v1.connect_timeout_seconds",
2525
        setting<uint32_t>(&configured.server.stratum_v1.connect_timeout_seconds),
45 ✔
2526
        "The time limit for connection establishment, defaults to {} (network controls)."
2527
    )
2528
    (
135 ✔
2529
        "stratum_v1.inactivity_minutes",
2530
        setting<uint32_t>(&configured.server.stratum_v1.inactivity_minutes),
45 ✔
2531
        "The idle timeout (http keep-alive), defaults to {}."
2532
    )
2533
    (
135 ✔
2534
        "stratum_v1.expiration_minutes",
2535
        setting<uint32_t>(&configured.server.stratum_v1.expiration_minutes),
45 ✔
2536
        "The maximum connection duration, defaults to {}."
2537
    )
2538
    (
135 ✔
2539
        "stratum_v1.minimum_buffer",
2540
        setting<uint32_t>(&configured.server.stratum_v1.minimum_buffer),
45 ✔
2541
        "The minimum retained read buffer size, defaults to {}."
2542
    )
2543
    (
135 ✔
2544
        "stratum_v1.maximum_backlog",
2545
        setting<uint32_t>(&configured.server.stratum_v1.maximum_backlog),
45 ✔
2546
        "The maximum write backlog of a channel, defaults to {}."
2547
    )
2548
    (
135 ✔
2549
        "stratum_v1.maximum_buffer",
2550
        setting<uint32_t>(&configured.server.stratum_v1.maximum_buffer),
45 ✔
2551
        "The maximum json response buffer size, defaults to {}."
2552
    )
2553
    (
135 ✔
2554
        "stratum_v1.maximum_request",
2555
        setting<uint32_t>(&configured.server.stratum_v1.maximum_request),
45 ✔
2556
        "The maximum allowed request size, defaults to {}."
2557
    )
2558
    (
135 ✔
2559
        "stratum_v1.payout_address",
2560
        setting<std::string>(&configured.server.stratum_v1.payout_address),
45 ✔
2561
        "The address paid by the coinbase, defaults to {} (the worker name)."
2562
    )
2563
    (
135 ✔
2564
        "stratum_v1.coinbase_tag",
2565
        setting<std::string>(&configured.server.stratum_v1.coinbase_tag),
45 ✔
2566
        "The text carried by the coinbase input script, defaults to {}."
2567
    )
2568
    (
135 ✔
2569
        "stratum_v1.extranonce1_size",
2570
        setting<uint8_t>(&configured.server.stratum_v1.extranonce1_size),
45 ✔
2571
        "The bytes of coinbase extranonce assigned to each channel, defaults to {}."
2572
    )
2573
    (
135 ✔
2574
        "stratum_v1.extranonce2_size",
2575
        setting<uint8_t>(&configured.server.stratum_v1.extranonce2_size),
45 ✔
2576
        "The bytes of coinbase extranonce rolled by the miner, defaults to {}."
2577
    )
2578
    (
135 ✔
2579
        "stratum_v1.minimum_difficulty",
2580
        setting<double>(&configured.server.stratum_v1.minimum_difficulty),
45 ✔
2581
        "The share difficulty floor of a channel, defaults to {}."
2582
    )
2583
    (
135 ✔
2584
        "stratum_v1.start_difficulty",
2585
        setting<double>(&configured.server.stratum_v1.start_difficulty),
45 ✔
2586
        "The share difficulty of a new channel, defaults to {} (automatic)."
2587
    )
2588
    (
135 ✔
2589
        "stratum_v1.share_interval_seconds",
2590
        setting<uint32_t>(&configured.server.stratum_v1.share_interval_seconds),
45 ✔
2591
        "The target seconds between shares of a channel, defaults to {} (0 fixes difficulty)."
2592
    )
2593
    (
135 ✔
2594
        "stratum_v1.authorize_timeout_seconds",
2595
        setting<uint32_t>(&configured.server.stratum_v1.authorize_timeout_seconds),
45 ✔
2596
        "The seconds to subscribe and authorize a channel, defaults to {} (0 is unlimited)."
2597
    )
2598

2599
    /* [stratum_v2] */
2600
    (
135 ✔
2601
        "stratum_v2.bind",
2602
        setting<network::config::authorities>(&configured.server.stratum_v2.binds),
45 ✔
2603
        "IP address to bind, multiple allowed, defaults to {} (disabled)."
2604
    )
2605
    (
135 ✔
2606
        "stratum_v2.safe",
2607
        setting<network::config::authorities>(&configured.server.stratum_v2.safes),
45 ✔
2608
        "IP address to secure bind (tls and/or Noise, detected), multiple allowed, defaults to {} (disabled)."
2609
    )
2610
    (
135 ✔
2611
        "stratum_v2.cert_auth",
2612
        setting<config::path>(&configured.server.stratum_v2.cert_auth),
45 ✔
2613
        "The trusted client certificate directory (*.PEM), enables client authentication."
2614
    )
2615
    (
135 ✔
2616
        "stratum_v2.cert_path",
2617
        setting<config::path>(&configured.server.stratum_v2.cert_path),
45 ✔
2618
        "The path to the server certificate file (.PEM), defaults to {}."
2619
    )
2620
    (
135 ✔
2621
        "stratum_v2.key_path",
2622
        setting<config::path>(&configured.server.stratum_v2.key_path),
45 ✔
2623
        "The path to the server private key file (.PEM), defaults to {}."
2624
    )
2625
    (
135 ✔
2626
        "stratum_v2.key_pass",
2627
        secret<std::string>(&configured.server.stratum_v2.key_pass),
45 ✔
2628
        "The password to decrypt the server private key file (.PEM), optional."
2629
    )
2630
    (
135 ✔
2631
        "stratum_v2.advertise",
2632
        setting<system::config::urls>(&configured.server.stratum_v2.advertise),
45 ✔
2633
        "The public [http|https://]host[:port] url, ws on its port, multiple allowed, defaults to {} (none)."
2634
    )
2635
    (
135 ✔
2636
        "stratum_v2.credential",
2637
        secret<network::config::credentials>(&configured.server.stratum_v2.credentials),
45 ✔
2638
        "The 'username:password' authorization (not secure), multiple allowed."
2639
    )
2640
    (
135 ✔
2641
        "stratum_v2.host",
2642
        setting<network::config::endpoints>(&configured.server.stratum_v2.hosts),
45 ✔
2643
        "The host name (http verification), multiple allowed, defaults to {} (disabled)."
2644
    )
2645
    (
135 ✔
2646
        "stratum_v2.origin",
2647
        setting<network::config::endpoints>(&configured.server.stratum_v2.origins),
45 ✔
2648
        "The allowed origin (see CORS), multiple allowed, defaults to {} (disabled)."
2649
    )
2650
    (
135 ✔
2651
        "stratum_v2.allow_opaque_origin",
2652
        setting<bool>(&configured.server.stratum_v2.allow_opaque_origin),
45 ✔
2653
        "Allow requests from opaque origin (see CORS), defaults to {}."
2654
    )
2655
    (
135 ✔
2656
        "stratum_v2.compression",
2657
        setting<bool>(&configured.server.stratum_v2.compression),
45 ✔
2658
        "Compress http response bodies as accepted by the request (gzip, deflate), defaults to {}."
2659
    )
2660
    (
135 ✔
2661
        "stratum_v2.connections",
2662
        setting<uint16_t>(&configured.server.stratum_v2.connections),
45 ✔
2663
        "The required maximum number of connections, defaults to {}."
2664
    )
2665
    (
135 ✔
2666
        "stratum_v2.rate_limit",
2667
        setting<uint32_t>(&configured.server.stratum_v2.rate_limit),
45 ✔
2668
        "The send rate limit in bytes per second, defaults to {} (network controls)."
2669
    )
2670
    (
135 ✔
2671
        "stratum_v2.connect_timeout_seconds",
2672
        setting<uint32_t>(&configured.server.stratum_v2.connect_timeout_seconds),
45 ✔
2673
        "The time limit for connection establishment, defaults to {} (network controls)."
2674
    )
2675
    (
135 ✔
2676
        "stratum_v2.inactivity_minutes",
2677
        setting<uint32_t>(&configured.server.stratum_v2.inactivity_minutes),
45 ✔
2678
        "The idle timeout (http keep-alive), defaults to {}."
2679
    )
2680
    (
135 ✔
2681
        "stratum_v2.expiration_minutes",
2682
        setting<uint32_t>(&configured.server.stratum_v2.expiration_minutes),
45 ✔
2683
        "The maximum connection duration, defaults to {}."
2684
    )
2685
    (
135 ✔
2686
        "stratum_v2.minimum_buffer",
2687
        setting<uint32_t>(&configured.server.stratum_v2.minimum_buffer),
45 ✔
2688
        "The minimum retained read buffer size, defaults to {}."
2689
    )
2690
    (
135 ✔
2691
        "stratum_v2.maximum_backlog",
2692
        setting<uint32_t>(&configured.server.stratum_v2.maximum_backlog),
45 ✔
2693
        "The maximum write backlog of a channel, defaults to {}."
2694
    )
2695
    (
135 ✔
2696
        "stratum_v2.maximum_buffer",
2697
        setting<uint32_t>(&configured.server.stratum_v2.maximum_buffer),
45 ✔
2698
        "The maximum json response buffer size, defaults to {}."
2699
    )
2700
    (
135 ✔
2701
        "stratum_v2.maximum_request",
2702
        setting<uint32_t>(&configured.server.stratum_v2.maximum_request),
45 ✔
2703
        "The maximum allowed request size, defaults to {}."
2704
    )
2705
    (
135 ✔
2706
        "stratum_v2.payout_address",
2707
        setting<std::string>(&configured.server.stratum_v2.payout_address),
45 ✔
2708
        "The address paid by the coinbase, defaults to {} (the user identity)."
2709
    )
2710
    (
135 ✔
2711
        "stratum_v2.coinbase_tag",
2712
        setting<std::string>(&configured.server.stratum_v2.coinbase_tag),
45 ✔
2713
        "The text carried by the coinbase input script, defaults to {}."
2714
    )
2715
    (
135 ✔
2716
        "stratum_v2.extranonce_prefix_size",
2717
        setting<uint8_t>(&configured.server.stratum_v2.extranonce_prefix_size),
45 ✔
2718
        "The bytes of coinbase extranonce assigned to each channel, defaults to {}."
2719
    )
2720
    (
135 ✔
2721
        "stratum_v2.extranonce_size",
2722
        setting<uint8_t>(&configured.server.stratum_v2.extranonce_size),
45 ✔
2723
        "The bytes of coinbase extranonce rolled by an extended channel miner, defaults to {}."
2724
    )
2725
    (
135 ✔
2726
        "stratum_v2.maximum_channels",
2727
        setting<uint32_t>(&configured.server.stratum_v2.maximum_channels),
45 ✔
2728
        "The mining channels open on a connection, defaults to {}."
2729
    )
2730
    (
135 ✔
2731
        "stratum_v2.noise_secret",
2732
        secret<config::base58check>(&configured.server.stratum_v2.noise_secret),
45 ✔
2733
        "The base58check Noise static secret key, defaults to none (no Noise)."
2734
    )
2735
    (
135 ✔
2736
        "stratum_v2.noise_authority",
2737
        secret<config::base58check>(&configured.server.stratum_v2.noise_authority),
45 ✔
2738
        "The base58check Noise authority secret key that issues certificates, defaults to none."
2739
    )
2740
    (
135 ✔
2741
        "stratum_v2.noise_authority_key",
2742
        setting<config::base58check>(&configured.server.stratum_v2.noise_authority_key),
45 ✔
2743
        "The base58check Noise authority public key that verifies the certificate, defaults to none."
2744
    )
2745
    (
135 ✔
2746
        "stratum_v2.noise_certificate",
2747
        setting<config::base58check>(&configured.server.stratum_v2.noise_certificate),
45 ✔
2748
        "The base58check Noise certificate pre-issued by the authority, defaults to none."
2749
    )
2750
    (
135 ✔
2751
        "stratum_v2.noise_validity_days",
2752
        setting<uint16_t>(&configured.server.stratum_v2.noise_validity_days),
45 ✔
2753
        "The days either side of issue that an issued certificate is valid, defaults to {}."
2754
    )
2755
    (
135 ✔
2756
        "stratum_v2.minimum_difficulty",
2757
        setting<double>(&configured.server.stratum_v2.minimum_difficulty),
45 ✔
2758
        "The share difficulty floor of a channel, defaults to {}."
2759
    )
2760
    (
135 ✔
2761
        "stratum_v2.start_difficulty",
2762
        setting<double>(&configured.server.stratum_v2.start_difficulty),
45 ✔
2763
        "The share difficulty of a new channel, defaults to {} (automatic)."
2764
    )
2765
    (
135 ✔
2766
        "stratum_v2.share_interval_seconds",
2767
        setting<uint32_t>(&configured.server.stratum_v2.share_interval_seconds),
45 ✔
2768
        "The target seconds between shares of a channel, defaults to {} (0 fixes difficulty)."
2769
    )
2770
    (
135 ✔
2771
        "stratum_v2.authorize_timeout_seconds",
2772
        setting<uint32_t>(&configured.server.stratum_v2.authorize_timeout_seconds),
45 ✔
2773
        "The seconds to set up a connection and to open a channel, defaults to {} (0 is unlimited)."
2774
    )
2775
    /* [node] */
2776
    (
135 ✔
2777
        "node.threads",
2778
        setting<uint32_t>(&configured.node.threads),
45 ✔
2779
        "The number of threads in the validation threadpool, defaults to {} (hardware threads)."
2780
    )
2781
    (
135 ✔
2782
        "node.thread_priority",
2783
        setting<bool>(&configured.node.thread_priority),
45 ✔
2784
        "Set validation threads to high processing priority, defaults to {}."
2785
    )
2786
    (
135 ✔
2787
        "node.delay_inbound",
2788
        setting<bool>(&configured.node.delay_inbound),
45 ✔
2789
        "Block inbound peer/client (excluding admin) until current, defaults to {}."
2790
    )
2791
    (
135 ✔
2792
        "node.provide_blocks",
2793
        setting<bool>(&configured.node.provide_blocks),
45 ✔
2794
        "Serve blocks to network connections, defaults to {}."
2795
    )
2796
    (
135 ✔
2797
        "node.limited_blocks",
2798
        setting<bool>(&configured.node.limited_blocks),
45 ✔
2799
        "Limit block service to recent blocks, defaults to {}."
2800
    )
2801
    (
135 ✔
2802
        "node.require_blocks",
2803
        setting<bool>(&configured.node.require_blocks),
45 ✔
2804
        "Require block service of outbound connections, defaults to {}."
2805
    )
2806
    (
135 ✔
2807
        "node.provide_witness",
2808
        setting<bool>(&configured.node.provide_witness),
45 ✔
2809
        "Serve witness data to network connections, defaults to {}."
2810
    )
2811
    (
135 ✔
2812
        "node.require_witness",
2813
        setting<bool>(&configured.node.require_witness),
45 ✔
2814
        "Require witness service of outbound connections, defaults to {}."
2815
    )
2816
    (
135 ✔
2817
        "node.provide_filters",
2818
        setting<bool>(&configured.node.provide_filters),
45 ✔
2819
        "Serve client filters to network connections, defaults to {}."
2820
    )
2821
    (
135 ✔
2822
        "node.provide_privacy",
2823
        setting<bool>(&configured.node.provide_privacy),
45 ✔
2824
        "Provide opportunistic connection encryption, defaults to {}."
2825
    )
2826
    (
135 ✔
2827
        "node.use_gpu",
2828
        setting<bool>(&configured.node.use_gpu),
45 ✔
2829
        "Use the GPU where available, defaults to {}."
2830
    )
2831
    ////(
2832
    ////    "node.cpu_batch_verify",
2833
    ////    setting<bool>(&configured.node.cpu_batch_verify),
2834
    ////    "Batch signature verification on the CPU when the GPU is not used, defaults to {}."
2835
    ////)
2836
    ////(
2837
    ////    "node.cpu_batch_silent",
2838
    ////    setting<bool>(&configured.node.cpu_batch_silent),
2839
    ////    "Batch silent payment indexing on the CPU when the GPU is not used, defaults to {}."
2840
    ////)
2841
    (
135 ✔
2842
        "node.batch_verify",
2843
        setting<uint64_t>(&configured.node.batch_verify),
45 ✔
2844
        "Count of signatures to verify in each batch, defaults to {} (0 disables)."
2845
    )
2846
    (
135 ✔
2847
        "node.batch_silent",
2848
        setting<uint64_t>(&configured.node.batch_silent),
45 ✔
2849
        "Count of silent payment transactions to index in each batch, defaults to {} (0 disables)."
2850
    )
2851
    (
135 ✔
2852
        "node.allowed_deviation",
2853
        setting<float>(&configured.node.allowed_deviation),
45 ✔
2854
        "Allowable underperformance standard deviation, defaults to {} (0 disables)."
2855
    )
2856
    (
135 ✔
2857
        "node.maximum_height",
2858
        setting<uint32_t>(&configured.node.maximum_height),
45 ✔
2859
        "Maximum block height to populate, defaults to {} (unlimited)."
2860
    )
2861
    (
135 ✔
2862
        "node.silent_start_height",
2863
        setting<uint32_t>(&configured.node.silent_start_height),
45 ✔
2864
        "Minimum height of silent payment indexation, defaults to {}."
2865
    )
2866
    (
135 ✔
2867
        "node.maximum_concurrency",
2868
        setting<uint32_t>(&configured.node.maximum_concurrency),
45 ✔
2869
        "Maximum number of blocks to download concurrently, defaults to {} (0 disables)."
2870
    )
2871
    (
135 ✔
2872
        "node.sample_period_seconds",
2873
        setting<uint16_t>(&configured.node.sample_period_seconds),
45 ✔
2874
        "Sampling period for drop of stalled channels, defaults to {} (0 disables)."
2875
    )
2876
    (
135 ✔
2877
        "node.compact_timeout_seconds",
2878
        setting<uint16_t>(&configured.node.compact_timeout_seconds),
45 ✔
2879
        "Time to await a compact block fill before downloading the block, defaults to {} (0 disables)."
2880
    )
2881
    (
135 ✔
2882
        "node.compact_missing_percent",
2883
        setting<uint8_t>(&configured.node.compact_missing_percent),
45 ✔
2884
        "Maximum percent of a compact block not pooled to fill it, defaults to {}."
2885
    )
2886
    (
135 ✔
2887
        "node.currency_window_minutes",
2888
        setting<uint32_t>(&configured.node.currency_window_minutes),
45 ✔
2889
        "Time from present that blocks are considered current, defaults to {} (0 disables)."
2890
    )
2891
    (
135 ✔
2892
        "node.fee_filter_minutes",
2893
        setting<uint16_t>(&configured.node.fee_filter_minutes),
45 ✔
2894
        "Minimum time between a peer's fee filter decreases, else the peer is dropped, defaults to {} (0 disables)."
2895
    )
2896
    ////(
2897
    ////    "node.snapshot_bytes",
2898
    ////    setting<uint64_t>(&configured.node.snapshot_bytes),
2899
    ////    "Downloaded bytes that triggers snapshot, defaults to {} (0 disables)."
2900
    ////)
2901
    ////(
2902
    ////    "node.snapshot_valid",
2903
    ////    setting<uint32_t>(&configured.node.snapshot_valid),
2904
    ////    "Completed validations that trigger snapshot, defaults to {} (0 disables)."
2905
    ////)
2906
    ////(
2907
    ////    "node.snapshot_confirm",
2908
    ////    setting<uint32_t>(&configured.node.snapshot_confirm),
2909
    ////    "Completed confirmations that trigger snapshot, defaults to {} (0 disables)."
2910
    ////)
2911

2912
    /* [pool] */
2913
    (
135 ✔
2914
        "pool.minimum_fee_rate",
2915
        setting<double>(&configured.node.pool.minimum_fee_rate),
45 ✔
2916
        "Minimum fee rate for non-conflicting tx acceptance, defaults to {}."
2917
    )
2918
    (
135 ✔
2919
        "pool.cutoff_rate",
2920
        setting<double>(&configured.node.pool.cutoff_rate),
45 ✔
2921
        "Fee rate on space when resolving template conflicts, defaults to {}."
2922
    )
2923
    (
135 ✔
2924
        "pool.maximum_outcomes",
2925
        setting<uint32_t>(&configured.node.pool.maximum_outcomes),
45 ✔
2926
        "Maximum conflict outcomes evaluated to accept a transaction, defaults to {}."
2927
    )
2928
    (
135 ✔
2929
        "pool.bytes_per_sigop",
2930
        setting<uint32_t>(&configured.node.pool.bytes_per_sigop),
45 ✔
2931
        "Virtual bytes charged per signature operation, defaults to {}."
2932
    )
2933
    (
135 ✔
2934
        "pool.coinbase_weight",
2935
        setting<uint32_t>(&configured.node.pool.coinbase_weight),
45 ✔
2936
        "Declared weight of the miner's coinbase transaction, defaults to {}."
2937
    )
2938
    (
135 ✔
2939
        "pool.coinbase_sigops",
2940
        setting<uint32_t>(&configured.node.pool.coinbase_sigops),
45 ✔
2941
        "Declared sigops of the miner's coinbase transaction, defaults to {}."
2942
    )
2943
    (
135 ✔
2944
        "pool.maximum_chunk_depth",
2945
        setting<uint32_t>(&configured.node.pool.maximum_chunk_depth),
45 ✔
2946
        "Maximum ancestor depth of a block template chunk, defaults to {}."
2947
    )
2948
    (
135 ✔
2949
        "pool.estimate_cache_seconds",
2950
        setting<uint16_t>(&configured.node.pool.estimate_cache_seconds),
45 ✔
2951
        "Seconds that fee estimates share a projection of the pool, defaults to {} (0 disables)."
2952
    )
2953
    (
135 ✔
2954
        "pool.estimate_room",
2955
        setting<uint32_t>(&configured.node.pool.estimate_room),
45 ✔
2956
        "Virtual bytes of block room below a fee estimate's rate, defaults to {}."
2957
    )
2958
    (
135 ✔
2959
        "pool.template_interval_seconds",
2960
        setting<uint16_t>(&configured.node.pool.template_interval_seconds),
45 ✔
2961
        "Seconds between replacements of a demanded block template, defaults to {} (0 disables)."
2962
    )
2963
    (
135 ✔
2964
        "pool.template_fee_increase",
2965
        setting<uint64_t>(&configured.node.pool.template_fee_increase),
45 ✔
2966
        "Satoshis of fee increase a block template must exceed to be replaced, defaults to {}."
2967
    )
2968
    (
135 ✔
2969
        "pool.thread_priority",
2970
        setting<bool>(&configured.node.pool.thread_priority),
45 ✔
2971
        "Set the transaction pool thread to high processing priority, defaults to {}."
2972
    )
2973

2974
    /* [database] */
2975
    (
135 ✔
2976
        "database.turbo",
2977
        setting<bool>(&configured.database.turbo),
45 ✔
2978
        "Allow individual non-validation queries to use all CPUs, defaults to {}."
2979
    )
2980
    (
135 ✔
2981
        "database.cold_reads",
2982
        setting<uint16_t>(&configured.database.cold_reads),
45 ✔
2983
        "Limit of concurrent prefetched block reads from disk, defaults to {} (0 unlimited)."
2984
    )
2985
    (
135 ✔
2986
        "database.memory_reserve",
2987
        setting<uint64_t>(&configured.database.memory_reserve),
45 ✔
2988
        "Bytes of unused memory restored by cache release when current, defaults to {} (0 disables)."
2989
    )
2990
    (
135 ✔
2991
        "database.memory_ceiling",
2992
        setting<uint64_t>(&configured.database.memory_ceiling),
45 ✔
2993
        "Bytes of process memory above which cache is released when current, defaults to {} (0 disables)."
2994
    )
2995
    (
135 ✔
2996
        "database.gpu_scan_minimum",
2997
        setting<uint32_t>(&configured.database.gpu_scan_minimum),
45 ✔
2998
        "Minimum transactions for a silent payment scan to use the GPU, defaults to {}."
2999
    )
3000
    (
135 ✔
3001
        "database.mark_unconfirmable",
3002
        setting<bool>(&configured.database.mark_unconfirmable),
45 ✔
3003
        "Save unconfirmable block state (prevents revalidation), defaults to {}."
3004
    )
3005
    (
135 ✔
3006
        "database.interval_depth",
3007
        setting<uint8_t>(&configured.database.interval_depth),
45 ✔
3008
        "The interval depth for merkle proof optimization, defaults to {}."
3009
    )
3010

3011
    /* [table.*] */
3012

3013
    /* table.header */
3014
    (
135 ✔
3015
        "table.header.buckets",
3016
        setting<uint32_t>(&configured.database.header.buckets),
45 ✔
3017
        "The number of buckets in the header table head, defaults to {}."
3018
    )
3019
    (
135 ✔
3020
        "table.header.expected",
3021
        setting<uint64_t>(&configured.database.header.expected),
45 ✔
3022
        "The expected element count of the header table, defaults to {}."
3023
    )
3024
    (
135 ✔
3025
        "table.header.size",
3026
        setting<uint64_t>(&configured.database.header.size),
45 ✔
3027
        "The minimum allocation of the header table body, defaults to {}."
3028
    )
3029
    (
135 ✔
3030
        "table.header.rate",
3031
        setting<uint16_t>(&configured.database.header.rate),
45 ✔
3032
        "The percentage expansion of the header table body, defaults to {}."
3033
    )
3034

3035
    /* table.input */
3036
    (
135 ✔
3037
        "table.input.size",
3038
        setting<uint64_t>(&configured.database.input.size),
45 ✔
3039
        "The minimum allocation of the input table body, defaults to {}."
3040
    )
3041
    (
135 ✔
3042
        "table.input.rate",
3043
        setting<uint16_t>(&configured.database.input.rate),
45 ✔
3044
        "The percentage expansion of the input table body, defaults to {}."
3045
    )
3046

3047
    /* table.output */
3048
    (
135 ✔
3049
        "table.output.size",
3050
        setting<uint64_t>(&configured.database.output.size),
45 ✔
3051
        "The minimum allocation of the output table body, defaults to {}."
3052
    )
3053
    (
135 ✔
3054
        "table.output.rate",
3055
        setting<uint16_t>(&configured.database.output.rate),
45 ✔
3056
        "The percentage expansion of the output table body, defaults to {}."
3057
    )
3058

3059
    /* table.ins */
3060
    (
135 ✔
3061
        "table.ins.buckets",
3062
        setting<uint32_t>(&configured.database.ins.buckets),
45 ✔
3063
        "The number of buckets in the ins table head, defaults to {}."
3064
    )
3065
    (
135 ✔
3066
        "table.ins.expected",
3067
        setting<uint64_t>(&configured.database.ins.expected),
45 ✔
3068
        "The expected element count of the ins table, defaults to {}."
3069
    )
3070
    (
135 ✔
3071
        "table.ins.size",
3072
        setting<uint64_t>(&configured.database.ins.size),
45 ✔
3073
        "The minimum allocation of the ins table body, defaults to {}."
3074
    )
3075
    (
135 ✔
3076
        "table.ins.rate",
3077
        setting<uint16_t>(&configured.database.ins.rate),
45 ✔
3078
        "The percentage expansion of the ins table body, defaults to {}."
3079
    )
3080

3081
    /* table.outs */
3082
    (
135 ✔
3083
        "table.outs.buckets",
3084
        setting<uint32_t>(&configured.database.outs.buckets),
45 ✔
3085
        "The number of buckets in the outs table head, defaults to {} (0 disables address index)."
3086
    )
3087
    (
135 ✔
3088
        "table.outs.expected",
3089
        setting<uint64_t>(&configured.database.outs.expected),
45 ✔
3090
        "The expected element count of the outs table, defaults to {}."
3091
    )
3092
    (
135 ✔
3093
        "table.outs.size",
3094
        setting<uint64_t>(&configured.database.outs.size),
45 ✔
3095
        "The minimum allocation of the outs table body, defaults to {}."
3096
    )
3097
    (
135 ✔
3098
        "table.outs.rate",
3099
        setting<uint16_t>(&configured.database.outs.rate),
45 ✔
3100
        "The percentage expansion of the outs table body, defaults to {}."
3101
    )
3102

3103
    /* table.tx */
3104
    (
135 ✔
3105
        "table.tx.buckets",
3106
        setting<uint32_t>(&configured.database.tx.buckets),
45 ✔
3107
        "The number of buckets in the tx table head, defaults to {}."
3108
    )
3109
    (
135 ✔
3110
        "table.tx.expected",
3111
        setting<uint64_t>(&configured.database.tx.expected),
45 ✔
3112
        "The expected element count of the tx table, defaults to {}."
3113
    )
3114
    (
135 ✔
3115
        "table.tx.size",
3116
        setting<uint64_t>(&configured.database.tx.size),
45 ✔
3117
        "The minimum allocation of the tx table body, defaults to {}."
3118
    )
3119
    (
135 ✔
3120
        "table.tx.rate",
3121
        setting<uint16_t>(&configured.database.tx.rate),
45 ✔
3122
        "The percentage expansion of the tx table body, defaults to {}."
3123
    )
3124

3125
    /* table.txs */
3126
    (
135 ✔
3127
        "table.txs.buckets",
3128
        setting<uint32_t>(&configured.database.txs.buckets),
45 ✔
3129
        "The number of buckets in the txs table head, defaults to {}."
3130
    )
3131
    (
135 ✔
3132
        "table.txs.size",
3133
        setting<uint64_t>(&configured.database.txs.size),
45 ✔
3134
        "The minimum allocation of the txs table body, defaults to {}."
3135
    )
3136
    (
135 ✔
3137
        "table.txs.rate",
3138
        setting<uint16_t>(&configured.database.txs.rate),
45 ✔
3139
        "The percentage expansion of the txs table body, defaults to {}."
3140
    )
3141

3142
    /* table.candidate */
3143
    (
135 ✔
3144
        "table.candidate.buckets",
3145
        setting<uint32_t>(&configured.database.candidate.buckets),
45 ✔
3146
        "The number of buckets provisioned in the candidate table head, defaults to {}."
3147
    )
3148
    (
135 ✔
3149
        "table.candidate.rate",
3150
        setting<uint16_t>(&configured.database.candidate.rate),
45 ✔
3151
        "The percentage expansion of the candidate table head, defaults to {}."
3152
    )
3153

3154
    /* table.confirmed */
3155
    (
135 ✔
3156
        "table.confirmed.buckets",
3157
        setting<uint32_t>(&configured.database.confirmed.buckets),
45 ✔
3158
        "The number of buckets provisioned in the confirmed table head, defaults to {}."
3159
    )
3160
    (
135 ✔
3161
        "table.confirmed.rate",
3162
        setting<uint16_t>(&configured.database.confirmed.rate),
45 ✔
3163
        "The percentage expansion of the confirmed table head, defaults to {}."
3164
    )
3165

3166
    /* table.strong */
3167
    (
135 ✔
3168
        "table.strong.buckets",
3169
        setting<uint32_t>(&configured.database.strong.buckets),
45 ✔
3170
        "The number of buckets provisioned in the strong table head, defaults to {}."
3171
    )
3172
    (
135 ✔
3173
        "table.strong.rate",
3174
        setting<uint16_t>(&configured.database.strong.rate),
45 ✔
3175
        "The percentage expansion of the strong table head, defaults to {}."
3176
    )
3177

3178
    /* table.scan */
3179
    (
135 ✔
3180
        "table.scan.buckets",
3181
        setting<uint32_t>(&configured.database.scan.buckets),
45 ✔
3182
        "The number of buckets provisioned in the scan table head, defaults to {}."
3183
    )
3184
    (
135 ✔
3185
        "table.scan.size",
3186
        setting<uint64_t>(&configured.database.scan.size),
45 ✔
3187
        "The minimum allocation of the scan table body, defaults to {}."
3188
    )
3189
    (
135 ✔
3190
        "table.scan.rate",
3191
        setting<uint16_t>(&configured.database.scan.rate),
45 ✔
3192
        "The percentage expansion of the scan table body, defaults to {}."
3193
    )
3194

3195
    /* table.wtxid */
3196
    (
135 ✔
3197
        "table.wtxid.buckets",
3198
        setting<uint32_t>(&configured.database.wtxid.buckets),
45 ✔
3199
        "The number of buckets in the wtxid table head, defaults to {} (0 disables)."
3200
    )
3201
    (
135 ✔
3202
        "table.wtxid.expected",
3203
        setting<uint64_t>(&configured.database.wtxid.expected),
45 ✔
3204
        "The expected element count of the wtxid table, defaults to {}."
3205
    )
3206
    (
135 ✔
3207
        "table.wtxid.size",
3208
        setting<uint64_t>(&configured.database.wtxid.size),
45 ✔
3209
        "The minimum allocation of the wtxid table body, defaults to {}."
3210
    )
3211
    (
135 ✔
3212
        "table.wtxid.rate",
3213
        setting<uint16_t>(&configured.database.wtxid.rate),
45 ✔
3214
        "The percentage expansion of the wtxid table body, defaults to {}."
3215
    )
3216

3217
    /* table.ecdsa */
3218
    (
135 ✔
3219
        "table.ecdsa.size",
3220
        setting<uint64_t>(&configured.database.ecdsa.size),
45 ✔
3221
        "The minimum allocation of each batch_ecdsa table body, defaults to {}."
3222
    )
3223
    (
135 ✔
3224
        "table.ecdsa.rate",
3225
        setting<uint16_t>(&configured.database.ecdsa.rate),
45 ✔
3226
        "The percentage expansion of each batch_ecdsa table body, defaults to {}."
3227
    )
3228

3229
    /* table.schnorr */
3230
    (
135 ✔
3231
        "table.schnorr.size",
3232
        setting<uint64_t>(&configured.database.schnorr.size),
45 ✔
3233
        "The minimum allocation of each batch_schnorr table body, defaults to {}."
3234
    )
3235
    (
135 ✔
3236
        "table.schnorr.rate",
3237
        setting<uint16_t>(&configured.database.schnorr.rate),
45 ✔
3238
        "The percentage expansion of each batch_schnorr table body, defaults to {}."
3239
    )
3240

3241
    /* table.silent */
3242
    (
135 ✔
3243
        "table.silent.size",
3244
        setting<uint64_t>(&configured.database.silent.size),
45 ✔
3245
        "The minimum allocation of each batch_silent table body, defaults to {}."
3246
    )
3247
    (
135 ✔
3248
        "table.silent.rate",
3249
        setting<uint16_t>(&configured.database.silent.rate),
45 ✔
3250
        "The percentage expansion of each batch_silent table body, defaults to {}."
3251
    )
3252

3253
    /* table.prevalid */
3254
    (
135 ✔
3255
        "table.prevalid.size",
3256
        setting<uint64_t>(&configured.database.prevalid.size),
45 ✔
3257
        "The minimum allocation of each batch_prevalid table body, defaults to {}."
3258
    )
3259
    (
135 ✔
3260
        "table.prevalid.rate",
3261
        setting<uint16_t>(&configured.database.prevalid.rate),
45 ✔
3262
        "The percentage expansion of each batch_prevalid table body, defaults to {}."
3263
    )
3264

3265
    /* table.presilent */
3266
    (
135 ✔
3267
        "table.presilent.size",
3268
        setting<uint64_t>(&configured.database.presilent.size),
45 ✔
3269
        "The minimum allocation of each batch_presilent table body, defaults to {}."
3270
    )
3271
    (
135 ✔
3272
        "table.presilent.rate",
3273
        setting<uint16_t>(&configured.database.presilent.rate),
45 ✔
3274
        "The percentage expansion of each batch_presilent table body, defaults to {}."
3275
    )
3276

3277
    /* table.prevout */
3278
    (
135 ✔
3279
        "table.prevout.buckets",
3280
        setting<uint32_t>(&configured.database.prevout.buckets),
45 ✔
3281
        "The minimum number of buckets in the prevout table head, defaults to {}."
3282
    )
3283
    (
135 ✔
3284
        "table.prevout.size",
3285
        setting<uint64_t>(&configured.database.prevout.size),
45 ✔
3286
        "The minimum allocation of the prevout table body, defaults to {}."
3287
    )
3288
    (
135 ✔
3289
        "table.prevout.rate",
3290
        setting<uint16_t>(&configured.database.prevout.rate),
45 ✔
3291
        "The percentage expansion of the prevout table, defaults to {}."
3292
    )
3293

3294
    /* table.duplicate */
3295
    (
135 ✔
3296
        "table.duplicate.buckets",
3297
        setting<uint32_t>(&configured.database.duplicate.buckets),
45 ✔
3298
        "The minimum number of buckets in the duplicate table head, defaults to {}."
3299
    )
3300
    (
135 ✔
3301
        "table.duplicate.expected",
3302
        setting<uint64_t>(&configured.database.duplicate.expected),
45 ✔
3303
        "The expected element count of the duplicate table, defaults to {}."
3304
    )
3305
    (
135 ✔
3306
        "table.duplicate.size",
3307
        setting<uint64_t>(&configured.database.duplicate.size),
45 ✔
3308
        "The minimum allocation of the duplicate table body, defaults to {}."
3309
    )
3310
    (
135 ✔
3311
        "table.duplicate.rate",
3312
        setting<uint16_t>(&configured.database.duplicate.rate),
45 ✔
3313
        "The percentage expansion of the duplicate table, defaults to {}."
3314
    )
3315

3316
    /* table.state */
3317
    (
135 ✔
3318
        "table.state.buckets",
3319
        setting<uint32_t>(&configured.database.state.buckets),
45 ✔
3320
        "The number of buckets provisioned in the state table head, defaults to {}."
3321
    )
3322
    (
135 ✔
3323
        "table.state.rate",
3324
        setting<uint16_t>(&configured.database.state.rate),
45 ✔
3325
        "The percentage expansion of the state table head, defaults to {}."
3326
    )
3327

3328
    /* table.pool */
3329
    (
135 ✔
3330
        "table.pool.buckets",
3331
        setting<uint32_t>(&configured.database.pool.buckets),
45 ✔
3332
        "The number of buckets in the pool table head, defaults to {} (0 disables)."
3333
    )
3334
    (
135 ✔
3335
        "table.pool.expected",
3336
        setting<uint64_t>(&configured.database.pool.expected),
45 ✔
3337
        "The expected element count of the pool table, defaults to {}."
3338
    )
3339
    (
135 ✔
3340
        "table.pool.size",
3341
        setting<uint64_t>(&configured.database.pool.size),
45 ✔
3342
        "The minimum allocation of the pool table body, defaults to {}."
3343
    )
3344
    (
135 ✔
3345
        "table.pool.rate",
3346
        setting<uint16_t>(&configured.database.pool.rate),
45 ✔
3347
        "The percentage expansion of the pool table body, defaults to {}."
3348
    )
3349

3350
    /* table.spends */
3351
    (
135 ✔
3352
        "table.spends.size",
3353
        setting<uint64_t>(&configured.database.spends.size),
45 ✔
3354
        "The minimum allocation of the spends table body, defaults to {}."
3355
    )
3356
    (
135 ✔
3357
        "table.spends.rate",
3358
        setting<uint16_t>(&configured.database.spends.rate),
45 ✔
3359
        "The percentage expansion of the spends table body, defaults to {}."
3360
    )
3361

3362
    /* table.filter_bk */
3363
    (
135 ✔
3364
        "table.filter_bk.buckets",
3365
        setting<uint32_t>(&configured.database.filter_bk.buckets),
45 ✔
3366
        "The number of buckets in the filter_bk table head, defaults to {}."
3367
    )
3368
    (
135 ✔
3369
        "table.filter_bk.size",
3370
        setting<uint64_t>(&configured.database.filter_bk.size),
45 ✔
3371
        "The minimum allocation of the filter_bk table body, defaults to {}."
3372
    )
3373
    (
135 ✔
3374
        "table.filter_bk.rate",
3375
        setting<uint16_t>(&configured.database.filter_bk.rate),
45 ✔
3376
        "The percentage expansion of the filter_bk table body, defaults to {}."
3377
    )
3378

3379
    /* table.filter_tx */
3380
    (
135 ✔
3381
        "table.filter_tx.buckets",
3382
        setting<uint32_t>(&configured.database.filter_tx.buckets),
45 ✔
3383
        "The number of buckets in the filter_tx table head, defaults to {}."
3384
    )
3385
    (
135 ✔
3386
        "table.filter_tx.size",
3387
        setting<uint64_t>(&configured.database.filter_tx.size),
45 ✔
3388
        "The minimum allocation of the filter_tx table body, defaults to {}."
3389
    )
3390
    (
135 ✔
3391
        "table.filter_tx.rate",
3392
        setting<uint16_t>(&configured.database.filter_tx.rate),
45 ✔
3393
        "The percentage expansion of the filter_tx table body, defaults to {}."
3394
    )
3395

3396
    /* [log] */
3397
#if defined(HAVE_LOGA)
3398
    (
135 ✔
3399
        "log.application",
3400
        setting<bool>(&configured.log.application),
45 ✔
3401
        "Enable application logging, defaults to {}."
3402
    )
3403
#endif
3404
#if defined(HAVE_LOGN)
3405
    (
135 ✔
3406
        "log.news",
3407
        setting<bool>(&configured.log.news),
45 ✔
3408
        "Enable news logging, defaults to {}."
3409
    )
3410
#endif
3411
#if defined(HAVE_LOGS)
3412
    (
135 ✔
3413
        "log.session",
3414
        setting<bool>(&configured.log.session),
45 ✔
3415
        "Enable session logging, defaults to {}."
3416
    )
3417
#endif
3418
#if defined(HAVE_LOGP)
3419
    (
135 ✔
3420
        "log.protocol",
3421
        setting<bool>(&configured.log.protocol),
45 ✔
3422
        "Enable protocol logging, defaults to {}."
3423
    )
3424
#endif
3425
#if defined(HAVE_LOGX)
3426
    (
135 ✔
3427
        "log.proxy",
3428
        setting<bool>(&configured.log.proxy),
45 ✔
3429
        "Enable proxy logging, defaults to {}."
3430
    )
3431
#endif
3432
#if defined(HAVE_LOGR)
3433
    (
135 ✔
3434
        "log.remote",
3435
        setting<bool>(&configured.log.remote),
45 ✔
3436
        "Enable remote fault logging, defaults to {}."
3437
    )
3438
#endif
3439
#if defined(HAVE_LOGF)
3440
    (
135 ✔
3441
        "log.fault",
3442
        setting<bool>(&configured.log.fault),
45 ✔
3443
        "Enable local fault logging, defaults to {}."
3444
    )
3445
#endif
3446
#if defined(HAVE_LOGQ)
3447
    (
135 ✔
3448
        "log.quitting",
3449
        setting<bool>(&configured.log.quitting),
45 ✔
3450
        "Enable quitting logging, defaults to {}."
3451
    )
3452
#endif
3453
#if defined(HAVE_LOGO)
3454
    (
135 ✔
3455
        "log.objects",
3456
        setting<bool>(&configured.log.objects),
45 ✔
3457
        "Enable objects logging, defaults to {}."
3458
    )
3459
#endif
3460
#if defined(HAVE_LOGV)
3461
    (
135 ✔
3462
        "log.verbose",
3463
        setting<bool>(&configured.log.verbose),
45 ✔
3464
        "Enable verbose logging, defaults to {}."
3465
    )
3466
#endif
3467
    (
135 ✔
3468
        "log.console",
3469
        setting<bool>(&configured.log.console),
45 ✔
3470
        "Write the console log to a pair of rotated log files, defaults to {}."
3471
    )
3472
    (
135 ✔
3473
        "log.limit",
3474
        setting<uint32_t>(&configured.log.limit),
45 ✔
3475
        "The maximum byte size of each pair of rotated log files, defaults to {}."
3476
    )
3477
    (
135 ✔
3478
        "log.events",
3479
        setting<bool>(&configured.log.events),
45 ✔
3480
        "Write events to the events log file, defaults to {}."
3481
    )
3482
    (
90 ✔
3483
        "log.thread_priority",
3484
        setting<bool>(&configured.log.thread_priority),
45 ✔
3485
        "Set the log thread to normal processing priority, defaults to {}."
3486
    );
3487

3488
    return description;
45 ✔
UNCOV
3489
}
×
3490

3491
BC_PUSH_WARNING(NO_ARRAY_TO_POINTER_DECAY)
3492
bool parser::parse(int argc, const char* argv[], std::ostream& error) THROWS
47 ✔
3493
BC_POP_WARNING()
3494
{
3495
    try
3496
    {
3497
        auto file = false;
3498
        load_command_variables(argc, argv);
47 ✔
3499
        ////load_environment_variables(environment_prefix);
3500

3501
        // Don't load config file if help is specified.
3502
        if (!get_option(help_variable))
45 ✔
3503
        {
3504
            // Returns true if the settings were loaded from a file.
3505
            file = load_configuration_variables(config_variable);
45 ✔
3506
        }
3507

3508
        // Update bound variables in metadata.settings.
3509
        notify(variables_);
45 ✔
3510
        select_network();
45 ✔
3511
        select_root();
45 ✔
3512
        select_paths();
45 ✔
3513
        derive_buckets();
45 ✔
3514
        derive_coinbase();
45 ✔
3515

3516
        // Clear the config file path if it wasn't used.
3517
        if (!file)
45 ✔
3518
            configured.file = {};
7 ✔
3519
    }
3520
    catch (const option_exception& e)
2 ✔
3521
    {
3522
        error << format_invalid_parameter(e.what()) << std::endl;
2 ✔
3523
        return false;
3524
    }
2 ✔
3525

3526
    return true;
3527
}
3528

3529
} // namespace server
3530
} // 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