Don't consider broken peers candidates for history

This commit is contained in:
JoelKatz
2015-05-19 14:23:22 -07:00
committed by Nik Bougalis
parent 172e967a73
commit 6994423a49

View File

@@ -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_);
}
//------------------------------------------------------------------------------