mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Slight quorum change.
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
#define SECTION_PEER_START_MAX "peer_start_max"
|
#define SECTION_PEER_START_MAX "peer_start_max"
|
||||||
#define SECTION_PEER_CONNECT_LOW_WATER "peer_connect_low_water"
|
#define SECTION_PEER_CONNECT_LOW_WATER "peer_connect_low_water"
|
||||||
#define SECTION_NETWORK_QUORUM "network_quorum"
|
#define SECTION_NETWORK_QUORUM "network_quorum"
|
||||||
#define SECTION_BELIEF_QUORUM "belief_quorum"
|
#define SECTION_VALIDATION_QUORUM "validation_quorum"
|
||||||
|
|
||||||
Config theConfig;
|
Config theConfig;
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ Config::Config()
|
|||||||
TRANSACTION_FEE_BASE = 1000;
|
TRANSACTION_FEE_BASE = 1000;
|
||||||
|
|
||||||
NETWORK_QUORUM = 0; // Don't need to see other nodes
|
NETWORK_QUORUM = 0; // Don't need to see other nodes
|
||||||
BELIEF_QUORUM = 1; // Only need one node to vouch
|
VALIDATION_QUORUM = 1; // Only need one node to vouch
|
||||||
}
|
}
|
||||||
|
|
||||||
void Config::load()
|
void Config::load()
|
||||||
@@ -103,8 +103,8 @@ void Config::load()
|
|||||||
if (sectionSingleB(secConfig, SECTION_NETWORK_QUORUM, strTemp))
|
if (sectionSingleB(secConfig, SECTION_NETWORK_QUORUM, strTemp))
|
||||||
NETWORK_QUORUM = MAX(0, boost::lexical_cast<int>(strTemp));
|
NETWORK_QUORUM = MAX(0, boost::lexical_cast<int>(strTemp));
|
||||||
|
|
||||||
if (sectionSingleB(secConfig, SECTION_BELIEF_QUORUM, strTemp))
|
if (sectionSingleB(secConfig, SECTION_VALIDATION_QUORUM, strTemp))
|
||||||
BELIEF_QUORUM = MAX(0, boost::lexical_cast<int>(strTemp));
|
VALIDATION_QUORUM = MAX(0, boost::lexical_cast<int>(strTemp));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#define VALIDATORS_SITE "redstem.com"
|
#define VALIDATORS_SITE "redstem.com"
|
||||||
|
|
||||||
#define VALIDATORS_FILE_NAME "validators.txt"
|
#define VALIDATORS_FILE_NAME "validators.txt"
|
||||||
const int SYSTEM_PEER_PORT=6561;
|
const int SYSTEM_PEER_PORT = 6561;
|
||||||
|
|
||||||
// Allow anonymous DH.
|
// Allow anonymous DH.
|
||||||
#define DEFAULT_PEER_SSL_CIPHER_LIST "ALL:!LOW:!EXP:!MD5:@STRENGTH"
|
#define DEFAULT_PEER_SSL_CIPHER_LIST "ALL:!LOW:!EXP:!MD5:@STRENGTH"
|
||||||
@@ -35,8 +35,9 @@ public:
|
|||||||
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
|
||||||
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 BELIEF_QUORUM; // Percent agreement needed to sync ledger w/o validations
|
int VALIDATION_QUORUM; // Minimum validations to consider ledger authoritative
|
||||||
|
|
||||||
// node networking parameters
|
// node networking parameters
|
||||||
std::string PEER_IP;
|
std::string PEER_IP;
|
||||||
|
|||||||
Reference in New Issue
Block a user