diff --git a/src/xrpld/overlay/Peer.h b/src/xrpld/overlay/Peer.h index 92ebc6e88a..11003083c8 100644 --- a/src/xrpld/overlay/Peer.h +++ b/src/xrpld/overlay/Peer.h @@ -14,7 +14,6 @@ class Charge; } // namespace Resource enum class ProtocolFeature { - ValidatorList2Propagation, // ValidatorListPropagation is no longer supported. LedgerReplay, }; diff --git a/src/xrpld/overlay/detail/PeerImp.cpp b/src/xrpld/overlay/detail/PeerImp.cpp index 66797349b0..eeffe593d0 100644 --- a/src/xrpld/overlay/detail/PeerImp.cpp +++ b/src/xrpld/overlay/detail/PeerImp.cpp @@ -545,8 +545,6 @@ PeerImp::supportsFeature(ProtocolFeature f) const { switch (f) { - case ProtocolFeature::ValidatorList2Propagation: - return protocol_ >= makeProtocol(2, 2); case ProtocolFeature::LedgerReplay: return ledgerReplayEnabled_; } @@ -2289,14 +2287,6 @@ PeerImp::onMessage(std::shared_ptr const& m { try { - if (!supportsFeature(ProtocolFeature::ValidatorList2Propagation)) - { - JLOG(pJournal_.debug()) << "ValidatorListCollection: received validator list from peer " - << "using protocol version " << to_string(protocol_) - << " which shouldn't support this feature."; - fee_.update(Resource::kFeeUselessData, "unsupported peer"); - return; - } if (m->version() < 2) { JLOG(pJournal_.debug())