mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
I believe this trivial change solves the "stuck one ledger behind" problem.
If the ledger is open, there should be no significant number of proposals for a subsequent ledger. If there is, we are a ledger behind.
This commit is contained in:
@@ -247,6 +247,7 @@ void LedgerConsensus::checkLCL()
|
||||
uint256 netLgr = mPrevLedgerHash;
|
||||
int netLgrCount = 0;
|
||||
|
||||
uint256 favoredLedger = (mState == PRE_CLOSE) ? uint256() : mPrevLedgerHash; // Don't get stuck one ledger behind
|
||||
boost::unordered_map<uint256, int> vals = theApp->getValidations().getCurrentValidations(mPrevLedgerHash);
|
||||
|
||||
typedef std::pair<const uint256, int> u256_int_pair;
|
||||
|
||||
Reference in New Issue
Block a user