Fix call doClusterReport on timer

This commit is contained in:
Vinnie Falco
2013-08-24 08:34:17 -07:00
parent 8908cdbfd5
commit 9ba8ea679c

View File

@@ -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