mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Don't consider broken peers candidates for history
This commit is contained in:
@@ -379,7 +379,7 @@ PeerImp::supportsVersion (int version)
|
|||||||
bool
|
bool
|
||||||
PeerImp::hasRange (std::uint32_t uMin, std::uint32_t uMax)
|
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