bitcoin-qt cannot be used as command line rpc client
This commit is contained in:
parent
c5aa1b139a
commit
b2d1129f27
@ -251,6 +251,7 @@ bool AppInit2(int argc, char* argv[])
|
|||||||
fNoListen = GetBoolArg("-nolisten") || fTOR;
|
fNoListen = GetBoolArg("-nolisten") || fTOR;
|
||||||
fLogTimestamps = GetBoolArg("-logtimestamps");
|
fLogTimestamps = GetBoolArg("-logtimestamps");
|
||||||
|
|
||||||
|
#ifndef QT_GUI
|
||||||
for (int i = 1; i < argc; i++)
|
for (int i = 1; i < argc; i++)
|
||||||
if (!IsSwitchChar(argv[i][0]))
|
if (!IsSwitchChar(argv[i][0]))
|
||||||
fCommandLine = true;
|
fCommandLine = true;
|
||||||
@ -260,6 +261,7 @@ bool AppInit2(int argc, char* argv[])
|
|||||||
int ret = CommandLineRPC(argc, argv);
|
int ret = CommandLineRPC(argc, argv);
|
||||||
exit(ret);
|
exit(ret);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef __WXMSW__
|
#ifndef __WXMSW__
|
||||||
if (fDaemon)
|
if (fDaemon)
|
||||||
|
Loading…
Reference in New Issue
Block a user