Cosmetic.

This commit is contained in:
Arthur Britto
2012-06-19 12:41:31 -07:00
parent 15d00c3789
commit d76cc94f0c

View File

@@ -42,60 +42,60 @@ class Config
{ {
public: public:
// Core software parameters // Core software parameters
int VERSION; int VERSION;
std::string VERSION_STR; std::string VERSION_STR;
// Configuration parameters // Configuration parameters
boost::filesystem::path CONFIG_FILE; boost::filesystem::path CONFIG_FILE;
boost::filesystem::path CONFIG_DIR; boost::filesystem::path CONFIG_DIR;
boost::filesystem::path DATA_DIR; boost::filesystem::path DATA_DIR;
boost::filesystem::path DEBUG_LOGFILE; boost::filesystem::path DEBUG_LOGFILE;
boost::filesystem::path UNL_DEFAULT; boost::filesystem::path UNL_DEFAULT;
std::string VALIDATORS_SITE; // Where to find validators.txt on the Internet. std::string VALIDATORS_SITE; // Where to find validators.txt on the Internet.
std::vector<std::string> VALIDATORS; // Validators from newcoind.cfg std::vector<std::string> VALIDATORS; // Validators from newcoind.cfg.
// Network parameters // Network parameters
int NETWORK_START_TIME; // The Unix time we start ledger 0 int NETWORK_START_TIME; // The Unix time we start ledger 0.
int TRANSACTION_FEE_BASE; int TRANSACTION_FEE_BASE;
int LEDGER_SECONDS; int LEDGER_SECONDS;
int LEDGER_PROPOSAL_DELAY_SECONDS; int LEDGER_PROPOSAL_DELAY_SECONDS;
int LEDGER_AVALANCHE_SECONDS; int LEDGER_AVALANCHE_SECONDS;
// Note: The following parameters do not relate to the UNL or trust at all // Note: The following parameters do not relate to the UNL or trust at all
int NETWORK_QUORUM; // Minimum number of nodes to consider the network present int NETWORK_QUORUM; // Minimum number of nodes to consider the network present
int VALIDATION_QUORUM; // Minimum validations to consider ledger authoritative int VALIDATION_QUORUM; // Minimum validations to consider ledger authoritative
// Peer networking parameters // Peer networking parameters
std::string PEER_IP; std::string PEER_IP;
int PEER_PORT; int PEER_PORT;
int NUMBER_CONNECTIONS; int NUMBER_CONNECTIONS;
std::string PEER_SSL_CIPHER_LIST; std::string PEER_SSL_CIPHER_LIST;
int PEER_SCAN_INTERVAL_MIN; int PEER_SCAN_INTERVAL_MIN;
int PEER_START_MAX; int PEER_START_MAX;
int PEER_CONNECT_LOW_WATER; int PEER_CONNECT_LOW_WATER;
// Client networking parameters // Client networking parameters
std::string WEBSOCKET_IP; std::string WEBSOCKET_IP;
int WEBSOCKET_PORT; int WEBSOCKET_PORT;
// RPC parameters // RPC parameters
std::string RPC_IP; std::string RPC_IP;
int RPC_PORT; int RPC_PORT;
std::string RPC_USER; std::string RPC_USER;
std::string RPC_PASSWORD; std::string RPC_PASSWORD;
bool RPC_ALLOW_REMOTE; bool RPC_ALLOW_REMOTE;
// Validation // Validation
NewcoinAddress VALIDATION_SEED; NewcoinAddress VALIDATION_SEED;
// Fees // Fees
uint64 FEE_DEFAULT; // Default fee. uint64 FEE_DEFAULT; // Default fee.
uint64 FEE_ACCOUNT_CREATE; // Fee to create an account. uint64 FEE_ACCOUNT_CREATE; // Fee to create an account.
uint64 FEE_NICKNAME_CREATE; // Fee to create a nickname. uint64 FEE_NICKNAME_CREATE; // Fee to create a nickname.
// Client behavior // Client behavior
int ACCOUNT_PROBE_MAX; // How far to scan for accounts. int ACCOUNT_PROBE_MAX; // How far to scan for accounts.
void setup(const std::string& strConf); void setup(const std::string& strConf);
void load(); void load();