mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
More cluster status work.
This commit is contained in:
@@ -1429,9 +1429,18 @@ void PeerImp::recvCluster (protocol::TMCluster& packet)
|
||||
{
|
||||
protocol::TMClusterNode const& node = packet.clusternodes(i);
|
||||
|
||||
// Extract RippleAddress and build ClusterNodeStatus
|
||||
// WRITEME
|
||||
std::string name;
|
||||
if (node.has_nodename())
|
||||
name = node.nodename();
|
||||
ClusterNodeStatus s(name, node.nodeload(), node.reporttime());
|
||||
|
||||
RippleAddress nodePub;
|
||||
nodePub.setNodePublic(node.publickey());
|
||||
|
||||
getApp().getUNL().nodeUpdate(nodePub, s);
|
||||
}
|
||||
|
||||
getApp().getFeeTrack().setClusterFee(getApp().getUNL().getClusterFee());
|
||||
}
|
||||
|
||||
void PeerImp::recvGetValidation (protocol::TMGetValidations& packet)
|
||||
|
||||
Reference in New Issue
Block a user