Slight quorum change.

This commit is contained in:
JoelKatz
2012-05-03 15:45:32 -07:00
parent dd02103487
commit 8bf477acac
2 changed files with 7 additions and 6 deletions

View File

@@ -19,7 +19,7 @@
#define SECTION_PEER_START_MAX "peer_start_max"
#define SECTION_PEER_CONNECT_LOW_WATER "peer_connect_low_water"
#define SECTION_NETWORK_QUORUM "network_quorum"
#define SECTION_BELIEF_QUORUM "belief_quorum"
#define SECTION_VALIDATION_QUORUM "validation_quorum"
Config theConfig;
@@ -50,7 +50,7 @@ Config::Config()
TRANSACTION_FEE_BASE = 1000;
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()
@@ -103,8 +103,8 @@ void Config::load()
if (sectionSingleB(secConfig, SECTION_NETWORK_QUORUM, strTemp))
NETWORK_QUORUM = MAX(0, boost::lexical_cast<int>(strTemp));
if (sectionSingleB(secConfig, SECTION_BELIEF_QUORUM, strTemp))
BELIEF_QUORUM = MAX(0, boost::lexical_cast<int>(strTemp));
if (sectionSingleB(secConfig, SECTION_VALIDATION_QUORUM, strTemp))
VALIDATION_QUORUM = MAX(0, boost::lexical_cast<int>(strTemp));
}
}

View File

@@ -7,7 +7,7 @@
#define VALIDATORS_SITE "redstem.com"
#define VALIDATORS_FILE_NAME "validators.txt"
const int SYSTEM_PEER_PORT=6561;
const int SYSTEM_PEER_PORT = 6561;
// Allow anonymous DH.
#define DEFAULT_PEER_SSL_CIPHER_LIST "ALL:!LOW:!EXP:!MD5:@STRENGTH"
@@ -35,8 +35,9 @@ public:
int LEDGER_PROPOSAL_DELAY_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 BELIEF_QUORUM; // Percent agreement needed to sync ledger w/o validations
int VALIDATION_QUORUM; // Minimum validations to consider ledger authoritative
// node networking parameters
std::string PEER_IP;