mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-01 08:25:51 +00:00
Make sure clients get the initial load information.
This commit is contained in:
@@ -1444,6 +1444,9 @@ bool NetworkOPs::subServer(InfoSub* ispListener, Json::Value& jvResult)
|
||||
|
||||
getRand(uRandom.begin(), uRandom.size());
|
||||
jvResult["random"] = uRandom.ToString();
|
||||
jvResult["server_status"] = mNetOps->strOperatingMode();
|
||||
jvObj["load_base"] = theApp->getFeeTrack().getLoadBase();
|
||||
jvObj["load_fee"] = theApp->getFeeTrack().getLoadFactor();
|
||||
|
||||
return mSubServer.insert(ispListener).second;
|
||||
}
|
||||
|
||||
@@ -2151,7 +2151,6 @@ Json::Value RPCHandler::doSubscribe(Json::Value jvRequest)
|
||||
if(streamName=="server")
|
||||
{
|
||||
mNetOps->subServer(mInfoSub, jvResult);
|
||||
jvResult["server_status"] = mNetOps->strOperatingMode();
|
||||
|
||||
} else if(streamName=="ledger")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user