Add getlocalsolps and getnetworksolps RPC calls, show them in getmininginfo

This commit is contained in:
Jack Grigg
2016-10-25 13:11:41 -07:00
parent 54218ea05c
commit 000499ae64
8 changed files with 116 additions and 12 deletions

View File

@@ -979,6 +979,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
CScheduler::Function serviceLoop = boost::bind(&CScheduler::serviceQueue, &scheduler);
threadGroup.create_thread(boost::bind(&TraceThread<CScheduler::Function>, "scheduler", serviceLoop));
// Count uptime
MarkStartTime();
if ((chainparams.NetworkIDString() != "regtest") &&
GetBoolArg("-showmetrics", true) &&
!fPrintToConsole && !GetBoolArg("-daemon", false)) {