mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-23 21:34:45 +00:00
bitcoin-cli: remove unneeded dependencies (only code movement)
Remove unnecessary dependencies for bitcoin-cli (leveldb, berkelydb, wallet, RPC server) Build system changes: - split libbitcoin.a into libbitcoin_common.a, libbitcoin_server.a and libbitcoin_cli.a Code changes (movement only): - split up HelpMessage into HelpMessage in init.cpp and HelpMessageCli in rpcclient.cpp - move uiInterface from init.cpp to util.cpp
This commit is contained in:
parent
e7e8a7537a
commit
0b47fe6bdc
@ -3,7 +3,7 @@ include Makefile.include
|
|||||||
AM_CPPFLAGS += -I$(top_srcdir)/src/leveldb/helpers/memenv \
|
AM_CPPFLAGS += -I$(top_srcdir)/src/leveldb/helpers/memenv \
|
||||||
-I$(builddir)
|
-I$(builddir)
|
||||||
|
|
||||||
noinst_LIBRARIES = libbitcoin.a
|
noinst_LIBRARIES = libbitcoin_server.a libbitcoin_common.a libbitcoin_cli.a
|
||||||
|
|
||||||
bin_PROGRAMS = bitcoind bitcoin-cli
|
bin_PROGRAMS = bitcoind bitcoin-cli
|
||||||
|
|
||||||
@ -33,23 +33,40 @@ obj/build.h: FORCE
|
|||||||
$(abs_top_srcdir)
|
$(abs_top_srcdir)
|
||||||
version.o: obj/build.h
|
version.o: obj/build.h
|
||||||
|
|
||||||
libbitcoin_a_SOURCES = addrman.cpp alert.cpp allocators.cpp \
|
libbitcoin_server_a_SOURCES = addrman.cpp alert.cpp \
|
||||||
rpcclient.cpp \
|
|
||||||
rpcprotocol.cpp \
|
|
||||||
rpcserver.cpp \
|
rpcserver.cpp \
|
||||||
bloom.cpp \
|
bloom.cpp \
|
||||||
chainparams.cpp checkpoints.cpp core.cpp coins.cpp crypter.cpp db.cpp hash.cpp \
|
chainparams.cpp checkpoints.cpp coins.cpp crypter.cpp db.cpp \
|
||||||
init.cpp key.cpp keystore.cpp leveldbwrapper.cpp main.cpp miner.cpp \
|
init.cpp keystore.cpp leveldbwrapper.cpp main.cpp miner.cpp \
|
||||||
netbase.cpp net.cpp noui.cpp protocol.cpp rpcblockchain.cpp rpcdump.cpp \
|
net.cpp noui.cpp rpcblockchain.cpp rpcdump.cpp \
|
||||||
rpcmining.cpp rpcnet.cpp rpcrawtransaction.cpp rpcwallet.cpp script.cpp \
|
rpcmining.cpp rpcnet.cpp rpcrawtransaction.cpp rpcwallet.cpp \
|
||||||
sync.cpp txdb.cpp txmempool.cpp util.cpp version.cpp wallet.cpp walletdb.cpp $(JSON_H) \
|
txdb.cpp txmempool.cpp wallet.cpp walletdb.cpp $(JSON_H) \
|
||||||
$(BITCOIN_CORE_H)
|
$(BITCOIN_CORE_H)
|
||||||
|
|
||||||
nodist_libbitcoin_a_SOURCES = $(top_srcdir)/src/obj/build.h
|
libbitcoin_common_a_SOURCES = \
|
||||||
|
allocators.cpp \
|
||||||
|
chainparams.cpp \
|
||||||
|
core.cpp \
|
||||||
|
hash.cpp \
|
||||||
|
key.cpp \
|
||||||
|
netbase.cpp \
|
||||||
|
protocol.cpp \
|
||||||
|
rpcprotocol.cpp \
|
||||||
|
script.cpp \
|
||||||
|
sync.cpp \
|
||||||
|
util.cpp \
|
||||||
|
version.cpp \
|
||||||
|
$(BITCOIN_CORE_H)
|
||||||
|
|
||||||
|
libbitcoin_cli_a_SOURCES = \
|
||||||
|
rpcclient.cpp \
|
||||||
|
$(BITCOIN_CORE_H)
|
||||||
|
|
||||||
|
nodist_libbitcoin_common_a_SOURCES = $(top_srcdir)/src/obj/build.h
|
||||||
#
|
#
|
||||||
|
|
||||||
# bitcoind binary #
|
# bitcoind binary #
|
||||||
bitcoind_LDADD = libbitcoin.a leveldb/libleveldb.a leveldb/libmemenv.a \
|
bitcoind_LDADD = libbitcoin_server.a libbitcoin_cli.a libbitcoin_common.a leveldb/libleveldb.a leveldb/libmemenv.a \
|
||||||
$(BOOST_LIBS)
|
$(BOOST_LIBS)
|
||||||
bitcoind_SOURCES = bitcoind.cpp
|
bitcoind_SOURCES = bitcoind.cpp
|
||||||
#
|
#
|
||||||
@ -62,15 +79,13 @@ AM_CPPFLAGS += $(BDB_CPPFLAGS)
|
|||||||
bitcoind_LDADD += $(BDB_LIBS)
|
bitcoind_LDADD += $(BDB_LIBS)
|
||||||
|
|
||||||
# bitcoin-cli binary #
|
# bitcoin-cli binary #
|
||||||
bitcoin_cli_LDADD = libbitcoin.a leveldb/libleveldb.a leveldb/libmemenv.a \
|
bitcoin_cli_LDADD = libbitcoin_cli.a libbitcoin_common.a $(BOOST_LIBS)
|
||||||
$(BOOST_LIBS)
|
|
||||||
bitcoin_cli_SOURCES = bitcoin-cli.cpp
|
bitcoin_cli_SOURCES = bitcoin-cli.cpp
|
||||||
#
|
#
|
||||||
|
|
||||||
if TARGET_WINDOWS
|
if TARGET_WINDOWS
|
||||||
bitcoin_cli_SOURCES += bitcoin-cli-res.rc
|
bitcoin_cli_SOURCES += bitcoin-cli-res.rc
|
||||||
endif
|
endif
|
||||||
bitcoin_cli_LDADD += $(BDB_LIBS)
|
|
||||||
|
|
||||||
leveldb/libleveldb.a: leveldb/libmemenv.a
|
leveldb/libleveldb.a: leveldb/libmemenv.a
|
||||||
|
|
||||||
@ -79,7 +94,7 @@ leveldb/%.a:
|
|||||||
CC="$(CC)" PLATFORM=$(TARGET_OS) AR="$(AR)" $(LEVELDB_TARGET_FLAGS) \
|
CC="$(CC)" PLATFORM=$(TARGET_OS) AR="$(AR)" $(LEVELDB_TARGET_FLAGS) \
|
||||||
OPT="$(CXXFLAGS) $(CPPFLAGS)"
|
OPT="$(CXXFLAGS) $(CPPFLAGS)"
|
||||||
|
|
||||||
qt/bitcoinstrings.cpp: $(libbitcoin_a_SOURCES)
|
qt/bitcoinstrings.cpp: $(libbitcoin_server_a_SOURCES) $(libbitcoin_common_a_SOURCES) $(libbitcoin_cli_a_SOURCES)
|
||||||
@test -n $(XGETTEXT) || echo "xgettext is required for updating translations"
|
@test -n $(XGETTEXT) || echo "xgettext is required for updating translations"
|
||||||
@cd $(top_srcdir); XGETTEXT=$(XGETTEXT) share/qt/extract_strings_qt.py
|
@cd $(top_srcdir); XGETTEXT=$(XGETTEXT) share/qt/extract_strings_qt.py
|
||||||
|
|
||||||
|
@ -5,7 +5,9 @@ AM_CPPFLAGS = $(INCLUDES) \
|
|||||||
$(BOOST_INCLUDES)
|
$(BOOST_INCLUDES)
|
||||||
AM_LDFLAGS = $(PTHREAD_CFLAGS)
|
AM_LDFLAGS = $(PTHREAD_CFLAGS)
|
||||||
|
|
||||||
LIBBITCOIN=$(top_builddir)/src/libbitcoin.a
|
LIBBITCOIN_SERVER=$(top_builddir)/src/libbitcoin_server.a
|
||||||
|
LIBBITCOIN_COMMON=$(top_builddir)/src/libbitcoin_common.a
|
||||||
|
LIBBITCOIN_CLI=$(top_builddir)/src/libbitcoin_cli.a
|
||||||
LIBLEVELDB=$(top_builddir)/src/leveldb/libleveldb.a
|
LIBLEVELDB=$(top_builddir)/src/leveldb/libleveldb.a
|
||||||
LIBMEMENV=$(top_builddir)/src/leveldb/libmemenv.a
|
LIBMEMENV=$(top_builddir)/src/leveldb/libmemenv.a
|
||||||
LIBBITCOINQT=$(top_builddir)/src/qt/libbitcoinqt.a
|
LIBBITCOINQT=$(top_builddir)/src/qt/libbitcoinqt.a
|
||||||
|
@ -42,7 +42,7 @@ static bool AppInitRPC(int argc, char* argv[])
|
|||||||
" bitcoin-cli [options] help " + _("List commands") + "\n" +
|
" bitcoin-cli [options] help " + _("List commands") + "\n" +
|
||||||
" bitcoin-cli [options] help <command> " + _("Get help for a command") + "\n";
|
" bitcoin-cli [options] help <command> " + _("Get help for a command") + "\n";
|
||||||
|
|
||||||
strUsage += "\n" + HelpMessage(HMM_BITCOIN_CLI);
|
strUsage += "\n" + HelpMessageCli(true);
|
||||||
|
|
||||||
fprintf(stdout, "%s", strUsage.c_str());
|
fprintf(stdout, "%s", strUsage.c_str());
|
||||||
return false;
|
return false;
|
||||||
|
@ -87,6 +87,7 @@ bool AppInit(int argc, char* argv[])
|
|||||||
" bitcoind [options] help <command> " + _("Get help for a command") + "\n";
|
" bitcoind [options] help <command> " + _("Get help for a command") + "\n";
|
||||||
|
|
||||||
strUsage += "\n" + HelpMessage(HMM_BITCOIND);
|
strUsage += "\n" + HelpMessage(HMM_BITCOIND);
|
||||||
|
strUsage += "\n" + HelpMessageCli(false);
|
||||||
|
|
||||||
fprintf(stdout, "%s", strUsage.c_str());
|
fprintf(stdout, "%s", strUsage.c_str());
|
||||||
return false;
|
return false;
|
||||||
|
21
src/init.cpp
21
src/init.cpp
@ -37,7 +37,6 @@ using namespace boost;
|
|||||||
|
|
||||||
std::string strWalletFile;
|
std::string strWalletFile;
|
||||||
CWallet* pwalletMain;
|
CWallet* pwalletMain;
|
||||||
CClientUIInterface uiInterface;
|
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
// Win32 LevelDB doesn't use filedescriptors, and the ones used for
|
// Win32 LevelDB doesn't use filedescriptors, and the ones used for
|
||||||
@ -181,8 +180,6 @@ std::string HelpMessage(HelpMessageMode hmm)
|
|||||||
strUsage += " -datadir=<dir> " + _("Specify data directory") + "\n";
|
strUsage += " -datadir=<dir> " + _("Specify data directory") + "\n";
|
||||||
strUsage += " -testnet " + _("Use the test network") + "\n";
|
strUsage += " -testnet " + _("Use the test network") + "\n";
|
||||||
|
|
||||||
if(hmm == HMM_BITCOIND || hmm == HMM_BITCOIN_QT)
|
|
||||||
{
|
|
||||||
strUsage += " -pid=<file> " + _("Specify pid file (default: bitcoind.pid)") + "\n";
|
strUsage += " -pid=<file> " + _("Specify pid file (default: bitcoind.pid)") + "\n";
|
||||||
strUsage += " -gen " + _("Generate coins (default: 0)") + "\n";
|
strUsage += " -gen " + _("Generate coins (default: 0)") + "\n";
|
||||||
strUsage += " -wallet=<file> " + _("Specify wallet file (within data directory)") + "\n";
|
strUsage += " -wallet=<file> " + _("Specify wallet file (within data directory)") + "\n";
|
||||||
@ -236,7 +233,6 @@ std::string HelpMessage(HelpMessageMode hmm)
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
strUsage += " -printtodebugger " + _("Send trace/debug info to debugger") + "\n";
|
strUsage += " -printtodebugger " + _("Send trace/debug info to debugger") + "\n";
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
if (hmm == HMM_BITCOIN_QT)
|
if (hmm == HMM_BITCOIN_QT)
|
||||||
{
|
{
|
||||||
@ -250,23 +246,10 @@ std::string HelpMessage(HelpMessageMode hmm)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hmm == HMM_BITCOIND || hmm == HMM_BITCOIN_CLI)
|
|
||||||
{
|
|
||||||
strUsage += " -rpcconnect=<ip> " + _("Send commands to node running on <ip> (default: 127.0.0.1)") + "\n";
|
|
||||||
strUsage += " -rpcwait " + _("Wait for RPC server to start") + "\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
strUsage += " -rpcuser=<user> " + _("Username for JSON-RPC connections") + "\n";
|
strUsage += " -rpcuser=<user> " + _("Username for JSON-RPC connections") + "\n";
|
||||||
strUsage += " -rpcpassword=<pw> " + _("Password for JSON-RPC connections") + "\n";
|
strUsage += " -rpcpassword=<pw> " + _("Password for JSON-RPC connections") + "\n";
|
||||||
if (hmm == HMM_BITCOIND || hmm == HMM_BITCOIN_QT)
|
|
||||||
{
|
|
||||||
strUsage += " -rpcport=<port> " + _("Listen for JSON-RPC connections on <port> (default: 8332 or testnet: 18332)") + "\n";
|
strUsage += " -rpcport=<port> " + _("Listen for JSON-RPC connections on <port> (default: 8332 or testnet: 18332)") + "\n";
|
||||||
} else {
|
|
||||||
strUsage += " -rpcport=<port> " + _("Connect to JSON-RPC on <port> (default: 8332 or testnet: 18332)") + "\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
if(hmm == HMM_BITCOIND || hmm == HMM_BITCOIN_QT)
|
|
||||||
{
|
|
||||||
strUsage += " -rpcallowip=<ip> " + _("Allow JSON-RPC connections from specified IP address") + "\n";
|
strUsage += " -rpcallowip=<ip> " + _("Allow JSON-RPC connections from specified IP address") + "\n";
|
||||||
strUsage += " -rpcthreads=<n> " + _("Set the number of threads to service RPC calls (default: 4)") + "\n";
|
strUsage += " -rpcthreads=<n> " + _("Set the number of threads to service RPC calls (default: 4)") + "\n";
|
||||||
strUsage += " -blocknotify=<cmd> " + _("Execute command when the best block changes (%s in cmd is replaced by block hash)") + "\n";
|
strUsage += " -blocknotify=<cmd> " + _("Execute command when the best block changes (%s in cmd is replaced by block hash)") + "\n";
|
||||||
@ -287,16 +270,12 @@ std::string HelpMessage(HelpMessageMode hmm)
|
|||||||
strUsage += " -blockminsize=<n> " + _("Set minimum block size in bytes (default: 0)") + "\n";
|
strUsage += " -blockminsize=<n> " + _("Set minimum block size in bytes (default: 0)") + "\n";
|
||||||
strUsage += " -blockmaxsize=<n> " + _("Set maximum block size in bytes (default: 250000)") + "\n";
|
strUsage += " -blockmaxsize=<n> " + _("Set maximum block size in bytes (default: 250000)") + "\n";
|
||||||
strUsage += " -blockprioritysize=<n> " + _("Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)") + "\n";
|
strUsage += " -blockprioritysize=<n> " + _("Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)") + "\n";
|
||||||
}
|
|
||||||
|
|
||||||
strUsage += "\n" + _("SSL options: (see the Bitcoin Wiki for SSL setup instructions)") + "\n";
|
strUsage += "\n" + _("SSL options: (see the Bitcoin Wiki for SSL setup instructions)") + "\n";
|
||||||
strUsage += " -rpcssl " + _("Use OpenSSL (https) for JSON-RPC connections") + "\n";
|
strUsage += " -rpcssl " + _("Use OpenSSL (https) for JSON-RPC connections") + "\n";
|
||||||
if (hmm == HMM_BITCOIND || hmm == HMM_BITCOIN_QT)
|
|
||||||
{
|
|
||||||
strUsage += " -rpcsslcertificatechainfile=<file.cert> " + _("Server certificate file (default: server.cert)") + "\n";
|
strUsage += " -rpcsslcertificatechainfile=<file.cert> " + _("Server certificate file (default: server.cert)") + "\n";
|
||||||
strUsage += " -rpcsslprivatekeyfile=<file.pem> " + _("Server private key (default: server.pem)") + "\n";
|
strUsage += " -rpcsslprivatekeyfile=<file.pem> " + _("Server private key (default: server.pem)") + "\n";
|
||||||
strUsage += " -rpcsslciphers=<ciphers> " + _("Acceptable ciphers (default: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)") + "\n";
|
strUsage += " -rpcsslciphers=<ciphers> " + _("Acceptable ciphers (default: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)") + "\n";
|
||||||
}
|
|
||||||
|
|
||||||
return strUsage;
|
return strUsage;
|
||||||
}
|
}
|
||||||
|
@ -26,8 +26,7 @@ bool AppInit2(boost::thread_group& threadGroup, bool fForceServer);
|
|||||||
enum HelpMessageMode
|
enum HelpMessageMode
|
||||||
{
|
{
|
||||||
HMM_BITCOIND,
|
HMM_BITCOIND,
|
||||||
HMM_BITCOIN_QT,
|
HMM_BITCOIN_QT
|
||||||
HMM_BITCOIN_CLI
|
|
||||||
};
|
};
|
||||||
|
|
||||||
std::string HelpMessage(HelpMessageMode mode);
|
std::string HelpMessage(HelpMessageMode mode);
|
||||||
|
@ -197,7 +197,7 @@ endif
|
|||||||
bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(QT_INCLUDES) \
|
bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(QT_INCLUDES) \
|
||||||
-I$(top_srcdir)/src/qt/forms
|
-I$(top_srcdir)/src/qt/forms
|
||||||
bitcoin_qt_SOURCES = bitcoin.cpp
|
bitcoin_qt_SOURCES = bitcoin.cpp
|
||||||
bitcoin_qt_LDADD = libbitcoinqt.a $(LIBBITCOIN) $(LIBLEVELDB) $(LIBMEMENV) \
|
bitcoin_qt_LDADD = libbitcoinqt.a $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBLEVELDB) $(LIBMEMENV) \
|
||||||
$(BOOST_LIBS) $(QT_LIBS) $(QT_DBUS_LIBS) $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS)
|
$(BOOST_LIBS) $(QT_LIBS) $(QT_DBUS_LIBS) $(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS)
|
||||||
|
|
||||||
# forms/foo.h -> forms/ui_foo.h
|
# forms/foo.h -> forms/ui_foo.h
|
||||||
|
@ -17,7 +17,7 @@ BUILT_SOURCES = $(TEST_QT_MOC_CPP)
|
|||||||
test_bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(QT_INCLUDES) $(QT_TEST_INCLUDES)
|
test_bitcoin_qt_CPPFLAGS = $(AM_CPPFLAGS) $(QT_INCLUDES) $(QT_TEST_INCLUDES)
|
||||||
test_bitcoin_qt_SOURCES = test_main.cpp uritests.cpp paymentservertests.cpp $(TEST_QT_H)
|
test_bitcoin_qt_SOURCES = test_main.cpp uritests.cpp paymentservertests.cpp $(TEST_QT_H)
|
||||||
nodist_test_bitcoin_qt_SOURCES = $(TEST_QT_MOC_CPP)
|
nodist_test_bitcoin_qt_SOURCES = $(TEST_QT_MOC_CPP)
|
||||||
test_bitcoin_qt_LDADD = $(LIBBITCOINQT) $(LIBBITCOIN) $(LIBLEVELDB) \
|
test_bitcoin_qt_LDADD = $(LIBBITCOINQT) $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBLEVELDB) \
|
||||||
$(LIBMEMENV) $(BOOST_LIBS) $(QT_LIBS) $(QT_DBUS_LIBS) $(QT_TEST_LIBS) \
|
$(LIBMEMENV) $(BOOST_LIBS) $(QT_LIBS) $(QT_DBUS_LIBS) $(QT_TEST_LIBS) \
|
||||||
$(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS)
|
$(QR_LIBS) $(PROTOBUF_LIBS) $(BDB_LIBS)
|
||||||
|
|
||||||
|
@ -244,3 +244,35 @@ int CommandLineRPC(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
return nRet;
|
return nRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string HelpMessageCli(bool mainProgram)
|
||||||
|
{
|
||||||
|
string strUsage;
|
||||||
|
if(mainProgram)
|
||||||
|
{
|
||||||
|
strUsage += _("Options:") + "\n";
|
||||||
|
strUsage += " -? " + _("This help message") + "\n";
|
||||||
|
strUsage += " -conf=<file> " + _("Specify configuration file (default: bitcoin.conf)") + "\n";
|
||||||
|
strUsage += " -datadir=<dir> " + _("Specify data directory") + "\n";
|
||||||
|
strUsage += " -testnet " + _("Use the test network") + "\n";
|
||||||
|
strUsage += " -regtest " + _("Enter regression test mode, which uses a special chain in which blocks can be "
|
||||||
|
"solved instantly. This is intended for regression testing tools and app development.") + "\n";
|
||||||
|
} else {
|
||||||
|
strUsage += _("RPC client options:") + "\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
strUsage += " -rpcconnect=<ip> " + _("Send commands to node running on <ip> (default: 127.0.0.1)") + "\n";
|
||||||
|
strUsage += " -rpcport=<port> " + _("Connect to JSON-RPC on <port> (default: 8332 or testnet: 18332)") + "\n";
|
||||||
|
strUsage += " -rpcwait " + _("Wait for RPC server to start") + "\n";
|
||||||
|
strUsage += " -rpcuser=<user> " + _("Username for JSON-RPC connections") + "\n";
|
||||||
|
strUsage += " -rpcpassword=<pw> " + _("Password for JSON-RPC connections") + "\n";
|
||||||
|
|
||||||
|
if(mainProgram)
|
||||||
|
{
|
||||||
|
strUsage += "\n" + _("SSL options: (see the Bitcoin Wiki for SSL setup instructions)") + "\n";
|
||||||
|
strUsage += " -rpcssl " + _("Use OpenSSL (https) for JSON-RPC connections") + "\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
return strUsage;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -14,4 +14,12 @@ int CommandLineRPC(int argc, char *argv[]);
|
|||||||
|
|
||||||
json_spirit::Array RPCConvertValues(const std::string &strMethod, const std::vector<std::string> &strParams);
|
json_spirit::Array RPCConvertValues(const std::string &strMethod, const std::vector<std::string> &strParams);
|
||||||
|
|
||||||
|
/** Show help message for bitcoin-cli.
|
||||||
|
* The mainProgram argument is used to determine whether to show this message as main program
|
||||||
|
* (and include some common options) or as sub-header of another help message.
|
||||||
|
*
|
||||||
|
* @note the argument can be removed once bitcoin-cli functionality is removed from bitcoind
|
||||||
|
*/
|
||||||
|
std::string HelpMessageCli(bool mainProgram);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -20,7 +20,7 @@ BUILT_SOURCES = $(JSON_TEST_FILES:.json=.json.h) $(RAW_TEST_FILES:.raw=.raw.h)
|
|||||||
|
|
||||||
# test_bitcoin binary #
|
# test_bitcoin binary #
|
||||||
test_bitcoin_CPPFLAGS = $(AM_CPPFLAGS) $(TESTDEFS)
|
test_bitcoin_CPPFLAGS = $(AM_CPPFLAGS) $(TESTDEFS)
|
||||||
test_bitcoin_LDADD = $(LIBBITCOIN) $(LIBLEVELDB) $(LIBMEMENV) \
|
test_bitcoin_LDADD = $(LIBBITCOIN_SERVER) $(LIBBITCOIN_CLI) $(LIBBITCOIN_COMMON) $(LIBLEVELDB) $(LIBMEMENV) \
|
||||||
$(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(BDB_LIBS)
|
$(BOOST_LIBS) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(BDB_LIBS)
|
||||||
test_bitcoin_SOURCES = accounting_tests.cpp alert_tests.cpp \
|
test_bitcoin_SOURCES = accounting_tests.cpp alert_tests.cpp \
|
||||||
allocator_tests.cpp base32_tests.cpp base58_tests.cpp base64_tests.cpp \
|
allocator_tests.cpp base32_tests.cpp base58_tests.cpp base64_tests.cpp \
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
|
|
||||||
|
|
||||||
CWallet* pwalletMain;
|
CWallet* pwalletMain;
|
||||||
CClientUIInterface uiInterface;
|
|
||||||
|
|
||||||
extern bool fPrintToConsole;
|
extern bool fPrintToConsole;
|
||||||
extern void noui_connect();
|
extern void noui_connect();
|
||||||
|
@ -95,6 +95,7 @@ string strMiscWarning;
|
|||||||
bool fNoListen = false;
|
bool fNoListen = false;
|
||||||
bool fLogTimestamps = false;
|
bool fLogTimestamps = false;
|
||||||
volatile bool fReopenDebugLog = false;
|
volatile bool fReopenDebugLog = false;
|
||||||
|
CClientUIInterface uiInterface;
|
||||||
|
|
||||||
// Init OpenSSL library multithreading support
|
// Init OpenSSL library multithreading support
|
||||||
static CCriticalSection** ppmutexOpenSSL;
|
static CCriticalSection** ppmutexOpenSSL;
|
||||||
@ -1511,3 +1512,4 @@ void RenameThread(const char* name)
|
|||||||
(void)name;
|
(void)name;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user