mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Don't report high cluster loads when we're not synched.
This commit is contained in:
@@ -2354,7 +2354,8 @@ void NetworkOPs::missingNodeInLedger (uint32 seq)
|
||||
|
||||
void NetworkOPs::doClusterReport ()
|
||||
{
|
||||
ClusterNodeStatus us("", getApp().getFeeTrack().getLocalFee(), getNetworkTimeNC());
|
||||
bool synced = (getApp().getLedgerMaster().getValidatedLedgerAge() <= 240);
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user