mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-19 18:15:50 +00:00
39 lines
603 B
C++
39 lines
603 B
C++
#include "string"
|
|
|
|
class Config
|
|
{
|
|
public:
|
|
int VERSION;
|
|
std::string VERSION_STR;
|
|
bool TEST_NET;
|
|
int NETWORK_START_TIME; // The Unix time we start ledger 0
|
|
|
|
int TRANSACTION_FEE;
|
|
int ACCOUNT_FEE;
|
|
int PEER_PORT;
|
|
int RPC_PORT;
|
|
int NUMBER_CONNECTIONS;
|
|
int LEDGER_SECONDS;
|
|
int LEDGER_PROPOSAL_DELAY_SECONDS;
|
|
int LEDGER_FINALIZATION_SECONDS;
|
|
std::string RECEIVE_ACTION;
|
|
int BELIEF_QUORUM;
|
|
float BELIEF_PERCENT;
|
|
std::string RPC_USER;
|
|
std::string RPC_PASSWORD;
|
|
std::string HANKO;
|
|
|
|
std::string DATA_DIR;
|
|
|
|
int MIN_VOTES_FOR_CONSENSUS;
|
|
|
|
|
|
|
|
|
|
|
|
Config();
|
|
|
|
void load();
|
|
};
|
|
|
|
extern Config theConfig; |