mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Whitespace
This commit is contained in:
@@ -707,8 +707,8 @@ void PeerImp::processReadBuffer ()
|
|||||||
|
|
||||||
if (msg.ParseFromArray (&mReadbuf[PackedMessage::kHeaderBytes], mReadbuf.size () - PackedMessage::kHeaderBytes))
|
if (msg.ParseFromArray (&mReadbuf[PackedMessage::kHeaderBytes], mReadbuf.size () - PackedMessage::kHeaderBytes))
|
||||||
recvCluster (msg);
|
recvCluster (msg);
|
||||||
else
|
else
|
||||||
WriteLog (lsWARNING, Peer) << "parse error: " << type;
|
WriteLog (lsWARNING, Peer) << "parse error: " << type;
|
||||||
}
|
}
|
||||||
|
|
||||||
case protocol::mtERROR_MSG:
|
case protocol::mtERROR_MSG:
|
||||||
@@ -1431,11 +1431,11 @@ void PeerImp::recvValidation (const boost::shared_ptr<protocol::TMValidation>& p
|
|||||||
|
|
||||||
bool isTrusted = getApp().getUNL ().nodeInUNL (val->getSignerPublic ());
|
bool isTrusted = getApp().getUNL ().nodeInUNL (val->getSignerPublic ());
|
||||||
if (isTrusted || !getApp().getFeeTrack ().isLoadedLocal ())
|
if (isTrusted || !getApp().getFeeTrack ().isLoadedLocal ())
|
||||||
getApp().getJobQueue ().addJob (isTrusted ? jtVALIDATION_t : jtVALIDATION_ut, "recvValidation->checkValidation",
|
getApp().getJobQueue ().addJob (isTrusted ? jtVALIDATION_t : jtVALIDATION_ut, "recvValidation->checkValidation",
|
||||||
BIND_TYPE (&checkValidation, P_1, val, signingHash, isTrusted, mCluster, packet,
|
BIND_TYPE (&checkValidation, P_1, val, signingHash, isTrusted, mCluster, packet,
|
||||||
boost::weak_ptr<Peer> (shared_from_this ())));
|
boost::weak_ptr<Peer> (shared_from_this ())));
|
||||||
else
|
else
|
||||||
WriteLog(lsDEBUG, Peer) << "Dropping untrusted validation due to load";
|
WriteLog(lsDEBUG, Peer) << "Dropping untrusted validation due to load";
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef TRUST_NETWORK
|
#ifndef TRUST_NETWORK
|
||||||
@@ -1462,7 +1462,7 @@ void PeerImp::recvCluster (protocol::TMCluster& packet)
|
|||||||
|
|
||||||
std::string name;
|
std::string name;
|
||||||
if (node.has_nodename())
|
if (node.has_nodename())
|
||||||
name = node.nodename();
|
name = node.nodename();
|
||||||
ClusterNodeStatus s(name, node.nodeload(), node.reporttime());
|
ClusterNodeStatus s(name, node.nodeload(), node.reporttime());
|
||||||
|
|
||||||
RippleAddress nodePub;
|
RippleAddress nodePub;
|
||||||
@@ -2173,9 +2173,10 @@ bool PeerImp::hasLedger (uint256 const& hash, uint32 seq) const
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
BOOST_FOREACH (uint256 const & ledger, mRecentLedgers)
|
BOOST_FOREACH (uint256 const & ledger, mRecentLedgers)
|
||||||
|
{
|
||||||
if (ledger == hash)
|
if (ledger == hash)
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user