mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Make quorum unreachable if validator list expires (RIPD-1539)
This commit is contained in:
@@ -239,7 +239,7 @@ ValidatorList::applyList (
|
||||
(iOld != oldList.end () && *iOld < *iNew))
|
||||
{
|
||||
// Decrement list count for removed keys
|
||||
if (keyListings_[*iOld] == 1)
|
||||
if (keyListings_[*iOld] <= 1)
|
||||
keyListings_.erase (*iOld);
|
||||
else
|
||||
--keyListings_[*iOld];
|
||||
@@ -421,6 +421,9 @@ ValidatorList::removePublisherList (PublicKey const& publisherKey)
|
||||
--iVal->second;
|
||||
}
|
||||
|
||||
iList->second.list.clear();
|
||||
iList->second.available = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user