Parsing the cluster status message, updates to tracking code

This commit is contained in:
JoelKatz
2013-07-10 10:09:03 -07:00
parent f590162d82
commit 3017929746
5 changed files with 40 additions and 4 deletions

View File

@@ -1420,7 +1420,18 @@ void PeerImp::recvValidation (const boost::shared_ptr<protocol::TMValidation>& p
void PeerImp::recvCluster (protocol::TMCluster& packet)
{
// WRITEME
if (!mCluster)
{
applyLoadCharge(LT_UnwantedData);
return;
}
for (int i = 0; i < packet.clusternodes().size(); ++i)
{
protocol::TMClusterNode const& node = packet.clusternodes(i);
// Extract RippleAddress and build ClusterNodeStatus
// WRITEME
}
}
void PeerImp::recvGetValidation (protocol::TMGetValidations& packet)