Cleanups.

This commit is contained in:
JoelKatz
2013-02-09 15:34:43 -08:00
parent 4496e5cde0
commit 79cbb0eea0
2 changed files with 8 additions and 4 deletions

View File

@@ -1009,7 +1009,11 @@ bool LedgerConsensus::peerPosition(const LedgerProposal::pointer& newPosition)
it.second->setVote(peerID, set->hasItem(it.first)); it.second->setVote(peerID, set->hasItem(it.first));
} }
else else
cLog(lsDEBUG) << "Don't have that tx set"; {
cLog(lsDEBUG) << "Don't have tx set for peer";
// BOOST_FOREACH(u256_lct_pair& it, mDisputes)
// it.second->unVote(peerID);
}
return true; return true;
} }

View File

@@ -1334,11 +1334,11 @@ void Peer::recvGetLedger(ripple::TMGetLedger& packet)
if (packet.itype() == ripple::liTS_CANDIDATE) if (packet.itype() == ripple::liTS_CANDIDATE)
{ // Request is for a transaction candidate set { // Request is for a transaction candidate set
cLog(lsINFO) << "Received request for TX candidate set data " << getIP(); cLog(lsDEBUG) << "Received request for TX candidate set data " << getIP();
if ((!packet.has_ledgerhash() || packet.ledgerhash().size() != 32)) if ((!packet.has_ledgerhash() || packet.ledgerhash().size() != 32))
{ {
punishPeer(LT_InvalidRequest); punishPeer(LT_InvalidRequest);
cLog(lsWARNING) << "invalid request"; cLog(lsWARNING) << "invalid request for TX candidate set data";
return; return;
} }
uint256 txHash; uint256 txHash;
@@ -1504,7 +1504,7 @@ void Peer::recvGetLedger(ripple::TMGetLedger& packet)
return; return;
} }
cLog(lsDEBUG) << "Request: " << logMe; cLog(lsTRACE) << "Request: " << logMe;
for(int i = 0; i < packet.nodeids().size(); ++i) for(int i = 0; i < packet.nodeids().size(); ++i)
{ {
SHAMapNode mn(packet.nodeids(i).data(), packet.nodeids(i).size()); SHAMapNode mn(packet.nodeids(i).data(), packet.nodeids(i).size());