Browse Source

build: add global var for whether or not the gui is enabled

miguelfreitas
Cory Fields 12 years ago
parent
commit
13c84b3bd5
  1. 1
      src/bitcoind.cpp
  2. 1
      src/main.cpp
  3. 1
      src/main.h
  4. 2
      src/qt/bitcoin.cpp

1
src/bitcoind.cpp

@ -123,6 +123,7 @@ extern void noui_connect();
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
bool fRet = false; bool fRet = false;
fHaveGUI = false;
// Connect bitcoind signal handlers // Connect bitcoind signal handlers
noui_connect(); noui_connect();

1
src/main.cpp

@ -48,6 +48,7 @@ bool fReindex = false;
bool fBenchmark = false; bool fBenchmark = false;
bool fTxIndex = false; bool fTxIndex = false;
unsigned int nCoinCacheSize = 5000; unsigned int nCoinCacheSize = 5000;
bool fHaveGUI = false;
/** Fees smaller than this (in satoshi) are considered zero fee (for transaction creation) */ /** Fees smaller than this (in satoshi) are considered zero fee (for transaction creation) */
int64 CTransaction::nMinTxFee = 10000; // Override with -mintxfee int64 CTransaction::nMinTxFee = 10000; // Override with -mintxfee

1
src/main.h

@ -94,6 +94,7 @@ extern bool fBenchmark;
extern int nScriptCheckThreads; extern int nScriptCheckThreads;
extern bool fTxIndex; extern bool fTxIndex;
extern unsigned int nCoinCacheSize; extern unsigned int nCoinCacheSize;
extern bool fHaveGUI;
// Settings // Settings
extern int64 nTransactionFee; extern int64 nTransactionFee;

2
src/qt/bitcoin.cpp

@ -113,6 +113,8 @@ static void handleRunawayException(std::exception *e)
#ifndef BITCOIN_QT_TEST #ifndef BITCOIN_QT_TEST
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
fHaveGUI = true;
// Command-line options take precedence: // Command-line options take precedence:
ParseParameters(argc, argv); ParseParameters(argc, argv);

Loading…
Cancel
Save