From 32bb0a6f72d1ddd49daa02d8e29a1ee8de5a4943 Mon Sep 17 00:00:00 2001 From: Bart <11445373+bthomee@users.noreply.github.com> Date: Mon, 8 Jun 2026 15:01:14 -0400 Subject: [PATCH] Remove supported protocol features --- src/xrpld/overlay/Peer.h | 1 - src/xrpld/overlay/detail/PeerImp.cpp | 10 ---------- 2 files changed, 11 deletions(-) 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())