mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-21 14:20:56 +00:00
Don't consider broken peers candidates for history
This commit is contained in:
@@ -379,7 +379,7 @@ PeerImp::supportsVersion (int version)
|
||||
bool
|
||||
PeerImp::hasRange (std::uint32_t uMin, std::uint32_t uMax)
|
||||
{
|
||||
return (uMin >= minLedger_) && (uMax <= maxLedger_);
|
||||
return (sanity_ != Sanity::insane) && (uMin >= minLedger_) && (uMax <= maxLedger_);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user