rippled
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
29 {
30  explicit ConfigSection() = default;
31 
32  static std::string nodeDatabase () { return "node_db"; }
33  static std::string shardDatabase () { return "shard_db"; }
34  static std::string importNodeDatabase () { return "import_db"; }
35 };
36 
37 // VFALCO TODO Rename and replace these macros with variables.
38 #define SECTION_AMENDMENTS "amendments"
39 #define SECTION_CLUSTER_NODES "cluster_nodes"
40 #define SECTION_COMPRESSION "compression"
41 #define SECTION_DEBUG_LOGFILE "debug_logfile"
42 #define SECTION_ELB_SUPPORT "elb_support"
43 #define SECTION_FEE_DEFAULT "fee_default"
44 #define SECTION_FEE_ACCOUNT_RESERVE "fee_account_reserve"
45 #define SECTION_FEE_OWNER_RESERVE "fee_owner_reserve"
46 #define SECTION_FETCH_DEPTH "fetch_depth"
47 #define SECTION_LEDGER_HISTORY "ledger_history"
48 #define SECTION_INSIGHT "insight"
49 #define SECTION_IPS "ips"
50 #define SECTION_IPS_FIXED "ips_fixed"
51 #define SECTION_NETWORK_QUORUM "network_quorum"
52 #define SECTION_NODE_SEED "node_seed"
53 #define SECTION_NODE_SIZE "node_size"
54 #define SECTION_PATH_SEARCH_OLD "path_search_old"
55 #define SECTION_PATH_SEARCH "path_search"
56 #define SECTION_PATH_SEARCH_FAST "path_search_fast"
57 #define SECTION_PATH_SEARCH_MAX "path_search_max"
58 #define SECTION_PEER_PRIVATE "peer_private"
59 #define SECTION_PEERS_MAX "peers_max"
60 #define SECTION_RPC_STARTUP "rpc_startup"
61 #define SECTION_SIGNING_SUPPORT "signing_support"
62 #define SECTION_SNTP "sntp_servers"
63 #define SECTION_SSL_VERIFY "ssl_verify"
64 #define SECTION_SSL_VERIFY_FILE "ssl_verify_file"
65 #define SECTION_SSL_VERIFY_DIR "ssl_verify_dir"
66 #define SECTION_VALIDATORS_FILE "validators_file"
67 #define SECTION_VALIDATION_SEED "validation_seed"
68 #define SECTION_WEBSOCKET_PING_FREQ "websocket_ping_frequency"
69 #define SECTION_VALIDATOR_KEYS "validator_keys"
70 #define SECTION_VALIDATOR_KEY_REVOCATION "validator_key_revocation"
71 #define SECTION_VALIDATOR_LIST_KEYS "validator_list_keys"
72 #define SECTION_VALIDATOR_LIST_SITES "validator_list_sites"
73 #define SECTION_VALIDATORS "validators"
74 #define SECTION_VALIDATOR_TOKEN "validator_token"
75 #define SECTION_VETO_AMENDMENTS "veto_amendments"
76 #define SECTION_WORKERS "workers"
77 
78 } // ripple
79 
80 #endif
std::string
STL class.
ripple::ConfigSection::shardDatabase
static std::string shardDatabase()
Definition: ConfigSections.h:33
ripple::ConfigSection::importNodeDatabase
static std::string importNodeDatabase()
Definition: ConfigSections.h:34
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:32
string