From 9ff59c93f8250814c672108e0b7e717e59abdbbe Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Wed, 20 Mar 2013 09:31:03 -0700 Subject: [PATCH] Fix bogus comment and race condition in ledger fetch code. --- src/cpp/ripple/Peer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cpp/ripple/Peer.cpp b/src/cpp/ripple/Peer.cpp index 9dbd04421b..5f26291316 100644 --- a/src/cpp/ripple/Peer.cpp +++ b/src/cpp/ripple/Peer.cpp @@ -1414,8 +1414,7 @@ void Peer::recvGetLedger(ripple::TMGetLedger& packet) if (!map) { if (packet.has_querytype() && !packet.has_requestcookie()) - { // FIXME: Don't relay requests for older ledgers we would acquire - // (if we don't have them, we can't get them) + { cLog(lsDEBUG) << "Trying to route TX set request"; std::vector peerList = theApp->getConnectionPool().getPeerVector(); std::vector usablePeers; @@ -1642,7 +1641,7 @@ void Peer::recvLedger(const boost::shared_ptr& packet_ptr) if (target) { packet.clear_requestcookie(); - target->sendPacket(boost::make_shared(packet, ripple::mtLEDGER_DATA), true); + target->sendPacket(boost::make_shared(packet, ripple::mtLEDGER_DATA), false); } else {