aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-cli.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Split up util.cpp/hWladimir J. van der Laan2014-08-261-0/+1
| | | | | | | | | | | | | | | | Split up util.cpp/h into: - string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach) - money utilities (parsesmoney, formatmoney) - time utilities (gettime*, sleep, format date): - and the rest (logging, argument parsing, config file parsing) The latter is basically the environment and OS handling, and is stripped of all utility functions, so we may want to rename it to something else than util.cpp/h for clarity (Matt suggested osinterface). Breaks dependency of sha256.cpp on all the things pulled in by util.
* Move `*Version()` functions to version.h/cppWladimir J. van der Laan2014-08-261-0/+1
|
* Remove size limit in RPC client, keep it in serverWladimir J. van der Laan2014-08-061-1/+1
| | | | | | | | | | The size limit makes a lot of sense for the server, as it never has to accept very large data. The client, however, can request arbitrary amounts of data with `listtransactions` on a large wallet. Fixes #4604.
* bitcoin-cli, rpcrawtransaction: harmonize "{" stylingJeff Garzik2014-07-291-21/+10
|
* Move ui_interface to bitcoin_server.aWladimir J. van der Laan2014-07-071-1/+2
| | | | | There is no need for it in the utility libraries or tools. Put it in init.cpp, and in the tests separately (as they can't link init).
* Remove unnecessary dependencies for bitcoin-cliWladimir J. van der Laan2014-06-251-5/+4
| | | | | | | | | This commit removes all the unnecessary dependencies (key, core, netbase, sync, ...) from bitcoin-cli. To do this it shards the chain parameters into BaseParams, which contains just the RPC port and data directory (as used by utils and bitcoin-cli) and Params, with the rest.
* Remove `using namespace std` from header fileWladimir J. van der Laan2014-06-161-0/+1
| | | | | It's considered bad form to import things into the global namespace in a header. Put it in the cpp files where it is needed instead.
* Remove cli functionality from bitcoindWladimir J. van der Laan2014-06-151-1/+157
| | | | | | | | | | | | As it says on the tin. It was deprecated in version 0.9, and at some point it should be removed. Removes the dependency of bitcoind on libbitcoin-cli.a. Move some functions that used to be shared but are now only used in bitcoin-cli.cpp to that file. After this change, an error is printed (and exit code 1 is returned) when the user tries to send RPC commands using bitcoind.
* bitcoin-cli, rpcclient: prefer EXIT_FAILURE cstdlib constantJeff Garzik2014-06-151-4/+4
| | | | | | | A more complex construction via abs() yields the same end result. Rebased-From: 34ff109 Rebased-By: Wladimir J. van der Laan <[email protected]>
* Add `-version` option to get just the versionWladimir J. van der Laan2014-06-111-8/+10
| | | | | | | | | Adds a `-version` or `--version` option to print just the version of the program for bitcoind, bitcoin-cli and bitcoin-qt. Also make it that `-help` can be used to display the help (as well as existing `--help`). Up to now, `-help` was the only option that didn't work with either one or two dashes.
* Get rid of TestNet()jtimon2014-06-041-1/+1
|
* SetupEnvironment() - clean commitStuart Cardall2014-05-131-0/+2
|
* Show error message if ReadConfigFile failsWladimir J. van der Laan2014-04-071-1/+6
| | | | | | | A runaway exception was raised if ReadConfigFile fails (usually due to a parse error in bitcoin.conf). Show an error message instead. Fixes #4013.
* Use the new name Bitcoin Core Daemon instead of Bitcoin serverpaveljanik2014-03-311-2/+2
| | | | | Rebased-By: Wladimir J. van der Laan <[email protected]> Rebased-From-Github-Pull: #3801
* Fix bitcoin-cli exit status codeCozz Lovan2014-02-261-4/+7
|
* bitcoin-cli: remove unneeded dependencies (only code movement)Wladimir J. van der Laan2013-12-031-1/+1
| | | | | | | | | | | | | | 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
* bitcoin-cli: Add missing SelectParamsFromCommandLineWladimir J. van der Laan2013-11-281-0/+6
| | | | | | The SelectParamsFromCommandLine call was missing in bitcoin-cli, which caused `-testnet` and `-regtest` to be ignored. Add this call just like in bitcoind.cpp.
* Split up bitcoinrpc (code movement only)Wladimir J. van der Laan2013-11-271-1/+1
| | | | | | | | | | | | | | Split bitcoinrpc up into - rpcserver: bitcoind RPC server - rpcclient: bitcoin-cli RPC client - rpcprotocol: shared common HTTP/JSON-RPC protocol code One step towards making bitcoin-cli independent from the rest of the code, and thus a smaller executable that doesn't have to be linked against leveldb. This commit only does code movement, there are no functional changes.
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-0/+2
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* Add separate bitcoin-rpc clientWladimir J. van der Laan2013-10-211-0/+69
This adds an executable `bitcoin-rpc` that only serves as a Bitcoin RPC client. The commit does not remove RPC functionality from the `bitcoind` yet, this functionality should be deprecated but is left for a later version to give users some time to switch.