diff --git a/Makefile.Debug b/Makefile.Debug index d582540d57..7755714c9e 100644 --- a/Makefile.Debug +++ b/Makefile.Debug @@ -1,5 +1,6 @@ ############################################################################# # Makefile for building: gridcoinresearch +# Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jul 21 22:07:19 2016 # Project: gridcoinresearch.pro # Template: app ############################################################################# diff --git a/Makefile.Release b/Makefile.Release index 2ea88dc59d..a8c3c3edff 100644 --- a/Makefile.Release +++ b/Makefile.Release @@ -1,5 +1,6 @@ ############################################################################# # Makefile for building: gridcoinresearch +# Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Jul 21 22:07:19 2016 # Project: gridcoinresearch.pro # Template: app ############################################################################# diff --git a/src/main.cpp b/src/main.cpp index 2c9ffd3bf9..c050ca439b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4882,7 +4882,9 @@ void GridcoinServices() if (OutOfSyncByMoreThan(30) || fGhostChain) { printf("Restarting Gridcoin..."); - int iResult = RestartClient(); + #ifdef QT_GUI + int iResult = RestartClient(); + #endif } } @@ -5259,7 +5261,9 @@ bool ProcessBlock(CNode* pfrom, CBlock* pblock, bool generated_by_me) if (TimerMain("OrphansAndNotRecovering",8)) { printf("\r\nGridcoin has not recovered after clearing orphans; Restarting node...\r\n"); - int iResult = RestartClient(); + #ifdef QT_GUI + int iResult = RestartClient(); + #endif } else { diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 02ae622d40..5d3f5dbe04 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -2111,7 +2111,10 @@ Value execute(const Array& params, bool fHelp) else if (sItem == "restartclient") { printf("Restarting Gridcoin..."); - int iResult = RestartClient(); + int iResult = 0; + #ifdef QT_GUI + iResult = RestartClient(); + #endif entry.push_back(Pair("Restarting",(double)iResult)); results.push_back(entry); }