Browse Source

Disable the metrics screen on regtest

pull/4/head
Jack Grigg 8 years ago
parent
commit
d35172fb67
No known key found for this signature in database GPG Key ID: 6A6914DAFBEA00DA
  1. 4
      src/init.cpp

4
src/init.cpp

@ -976,7 +976,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));
if (GetBoolArg("-showmetrics", true) && !fPrintToConsole && !GetBoolArg("-daemon", false)) {
if ((chainparams.NetworkIDString() != "regtest") &&
GetBoolArg("-showmetrics", true) &&
!fPrintToConsole && !GetBoolArg("-daemon", false)) {
// Start the persistent metrics interface
ConnectMetricsScreen();
threadGroup.create_thread(&ThreadShowMetricsScreen);

Loading…
Cancel
Save