rippled
ripple
core
ConfigSections.h
1
//------------------------------------------------------------------------------
2
/*
3
This file is part of rippled: https://github.com/ripple/rippled
4
Copyright (c) 2012, 2013 Ripple Labs Inc.
5
6
Permission to use, copy, modify, and/or distribute this software for any
7
purpose with or without fee is hereby granted, provided that the above
8
copyright notice and this permission notice appear in all copies.
9
10
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
*/
18
//==============================================================================
19
20
#ifndef RIPPLE_CORE_CONFIGSECTIONS_H_INCLUDED
21
#define RIPPLE_CORE_CONFIGSECTIONS_H_INCLUDED
22
23
#include <
string
>
24
25
namespace
ripple
{
26
27
// VFALCO DEPRECATED in favor of the BasicConfig interface
28
struct
ConfigSection
29
{
30
explicit
ConfigSection
() =
default
;
31
32
static
std::string
33
nodeDatabase
()
34
{
35
return
"node_db"
;
36
}
37
static
std::string
38
shardDatabase
()
39
{
40
return
"shard_db"
;
41
}
42
static
std::string
43
importNodeDatabase
()
44
{
45
return
"import_db"
;
46
}
47
};
48
49
// VFALCO TODO Rename and replace these macros with variables.
50
#define SECTION_AMENDMENTS "amendments"
51
#define SECTION_AMENDMENT_MAJORITY_TIME "amendment_majority_time"
52
#define SECTION_CLUSTER_NODES "cluster_nodes"
53
#define SECTION_COMPRESSION "compression"
54
#define SECTION_DEBUG_LOGFILE "debug_logfile"
55
#define SECTION_ELB_SUPPORT "elb_support"
56
#define SECTION_FEE_DEFAULT "fee_default"
57
#define SECTION_FETCH_DEPTH "fetch_depth"
58
#define SECTION_HISTORICAL_SHARD_PATHS "historical_shard_paths"
59
#define SECTION_INSIGHT "insight"
60
#define SECTION_IPS "ips"
61
#define SECTION_IPS_FIXED "ips_fixed"
62
#define SECTION_LEDGER_HISTORY "ledger_history"
63
#define SECTION_MAX_TRANSACTIONS "max_transactions"
64
#define SECTION_NETWORK_QUORUM "network_quorum"
65
#define SECTION_NODE_SEED "node_seed"
66
#define SECTION_NODE_SIZE "node_size"
67
#define SECTION_OVERLAY "overlay"
68
#define SECTION_PATH_SEARCH_OLD "path_search_old"
69
#define SECTION_PATH_SEARCH "path_search"
70
#define SECTION_PATH_SEARCH_FAST "path_search_fast"
71
#define SECTION_PATH_SEARCH_MAX "path_search_max"
72
#define SECTION_PEER_PRIVATE "peer_private"
73
#define SECTION_PEERS_MAX "peers_max"
74
#define SECTION_PEERS_IN_MAX "peers_in_max"
75
#define SECTION_PEERS_OUT_MAX "peers_out_max"
76
#define SECTION_REDUCE_RELAY "reduce_relay"
77
#define SECTION_RELATIONAL_DB "relational_db"
78
#define SECTION_RELAY_PROPOSALS "relay_proposals"
79
#define SECTION_RELAY_VALIDATIONS "relay_validations"
80
#define SECTION_RPC_STARTUP "rpc_startup"
81
#define SECTION_SIGNING_SUPPORT "signing_support"
82
#define SECTION_SNTP "sntp_servers"
83
#define SECTION_SSL_VERIFY "ssl_verify"
84
#define SECTION_SSL_VERIFY_FILE "ssl_verify_file"
85
#define SECTION_SSL_VERIFY_DIR "ssl_verify_dir"
86
#define SECTION_SERVER_DOMAIN "server_domain"
87
#define SECTION_VALIDATORS_FILE "validators_file"
88
#define SECTION_VALIDATION_SEED "validation_seed"
89
#define SECTION_VALIDATOR_KEYS "validator_keys"
90
#define SECTION_VALIDATOR_KEY_REVOCATION "validator_key_revocation"
91
#define SECTION_VALIDATOR_LIST_KEYS "validator_list_keys"
92
#define SECTION_VALIDATOR_LIST_SITES "validator_list_sites"
93
#define SECTION_VALIDATORS "validators"
94
#define SECTION_VALIDATOR_TOKEN "validator_token"
95
#define SECTION_VETO_AMENDMENTS "veto_amendments"
96
#define SECTION_WORKERS "workers"
97
#define SECTION_IO_WORKERS "io_workers"
98
#define SECTION_PREFETCH_WORKERS "prefetch_workers"
99
#define SECTION_LEDGER_REPLAY "ledger_replay"
100
#define SECTION_BETA_RPC_API "beta_rpc_api"
101
#define SECTION_SWEEP_INTERVAL "sweep_interval"
102
#define SECTION_NETWORK_ID "network_id"
103
104
}
// namespace ripple
105
106
#endif
std::string
STL class.
ripple::ConfigSection::shardDatabase
static std::string shardDatabase()
Definition:
ConfigSections.h:38
ripple::ConfigSection::importNodeDatabase
static std::string importNodeDatabase()
Definition:
ConfigSections.h:43
ripple::ConfigSection::ConfigSection
ConfigSection()=default
ripple::ConfigSection
Definition:
ConfigSections.h:28
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition:
RCLCensorshipDetector.h:29
ripple::ConfigSection::nodeDatabase
static std::string nodeDatabase()
Definition:
ConfigSections.h:33
string
Generated by
1.8.17