mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 10:35:50 +00:00
Fix call doClusterReport on timer
This commit is contained in:
@@ -100,7 +100,7 @@ void NetworkOPs::onDeadlineTimer (DeadlineTimer& timer)
|
||||
else if (timer == m_clusterTimer)
|
||||
{
|
||||
getApp().getJobQueue ().addJob (jtNETOP_CLUSTER, "NetworkOPs::doClusterReport",
|
||||
BIND_TYPE (&NetworkOPs::processNetTimer, this));
|
||||
BIND_TYPE (&NetworkOPs::doClusterReport, this));
|
||||
//doClusterReport();
|
||||
}
|
||||
}
|
||||
@@ -2398,7 +2398,7 @@ void NetworkOPs::doClusterReport ()
|
||||
ClusterNodeStatus us("", synced ? getApp().getFeeTrack().getLocalFee() : 0, getNetworkTimeNC());
|
||||
if (!getApp().getUNL().nodeUpdate(getApp().getLocalCredentials().getNodePublic(), us))
|
||||
{
|
||||
WriteLog (lsDEBUG, NetworkOPs) << "To soon to send cluster update";
|
||||
WriteLog (lsDEBUG, NetworkOPs) << "Too soon to send cluster update";
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2419,5 +2419,3 @@ void NetworkOPs::doClusterReport ()
|
||||
PackedMessage::pointer message = boost::make_shared<PackedMessage>(cluster, protocol::mtCLUSTER);
|
||||
getApp().getPeers().relayMessageCluster (NULL, message);
|
||||
}
|
||||
|
||||
// vim:ts=4
|
||||
|
||||
Reference in New Issue
Block a user