Revert "Several changes to improve Consensus stability: (#4505)"

This reverts commit e8a7b2a1fc.
This commit is contained in:
Elliot Lee
2023-08-29 16:52:31 -07:00
parent 300b7e078a
commit 7ca1c644d1
20 changed files with 187 additions and 910 deletions

View File

@@ -24,7 +24,6 @@
#include <ripple/basics/Slice.h>
#include <ripple/basics/StringUtilities.h>
#include <ripple/basics/base64.h>
#include <ripple/consensus/ConsensusParms.h>
#include <ripple/json/json_reader.h>
#include <ripple/overlay/Overlay.h>
#include <ripple/protocol/STValidation.h>
@@ -1762,10 +1761,8 @@ ValidatorList::calculateQuorum(
// Note that the negative UNL protocol introduced the
// AbsoluteMinimumQuorum which is 60% of the original UNL size. The
// effective quorum should not be lower than it.
static ConsensusParms const parms;
return static_cast<std::size_t>(std::max(
std::ceil(effectiveUnlSize * parms.minCONSENSUS_FACTOR),
std::ceil(unlSize * parms.negUNL_MIN_CONSENSUS_FACTOR)));
std::ceil(effectiveUnlSize * 0.8f), std::ceil(unlSize * 0.6f)));
}
TrustChanges