mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Consensus ledger switch improvements
* Expire validations faster based on when we first saw them. * Never jump to a ledger prior to the latest fully-valid ledger * Drop validations with signing times too far in the future immediately
This commit is contained in:
@@ -550,8 +550,9 @@ void LedgerConsensusImp::checkLCL ()
|
||||
// Get validators that are on our ledger, or "close" to being on
|
||||
// our ledger.
|
||||
hash_map<uint256, ValidationCounter> vals =
|
||||
app_.getValidations ().getCurrentValidations
|
||||
(favoredLedger, priorLedger);
|
||||
app_.getValidations ().getCurrentValidations(
|
||||
favoredLedger, priorLedger,
|
||||
ledgerMaster_.getValidLedgerIndex ());
|
||||
|
||||
for (auto& it : vals)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user