mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 14:35:52 +00:00
Cleanups.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user