diff --git a/src/ripple/overlay/impl/PeerImp.cpp b/src/ripple/overlay/impl/PeerImp.cpp index 09050e85f..2d9f6c07b 100644 --- a/src/ripple/overlay/impl/PeerImp.cpp +++ b/src/ripple/overlay/impl/PeerImp.cpp @@ -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_); } //------------------------------------------------------------------------------