aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | RPC: strictly require HTTP URI "/"Jeff Garzik2013-05-011-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, JSON-RPC clients accessed URI "/", and the JSON-RPC server did not care about the URI at all, and would accept any URI as valid. Change the JSON-RPC server to require URI "/" for all current accesses. This changes enables the addition of future interfaces at different URIs, such as pull request #1982 which demonstrates HTTP REST wallet download. Or, a future, breaking change in JSON-RPC interface could be introduced by serving JSON-RPC calls from new URI "/v2/".
* | Clean up shutdown processGavin Andresen2013-04-031-4/+8
| |
* | Port Thread* methods to boost::thread_groupGavin Andresen2013-04-031-96/+40
| |
* | Rename util.h Sleep --> MilliSleepGavin Andresen2013-04-031-1/+1
| | | | | | | | | | | | | | | | Two reasons for this change: 1. Need to always use boost::thread's sleep, even on Windows, so the sleeps can be interrupted (prior code used Windows' built-in Sleep). 2. I always forgot what units the old Sleep took.
* | translation base files update 2013-04-02Philip Kaufmann2013-04-021-1/+2
| | | | | | | | | | - also includes a small change to a string in bitcoinrpc.cpp, which is not on Transifex anyway, so is safe to merge
* | Recommend alertnotifyGavin Andresen2013-03-211-1/+3
| |
* | CRPCCommand.unlocked -> CRPCCommand.threadSafefreewil2013-03-071-3/+3
| | | | | | | | unlocked could be confused with wallet encryption
* | make vRPCCommands comment match property namesfreewil2013-03-071-64/+64
| |
* | Enable dumpprivkey in safe modeAndrew Poelstra2013-02-141-1/+1
| |
* | Add a getaddednodeinfo RPC.Matt Corallo2013-01-271-0/+2
| |
* | Add addnode RPC command.Matt Corallo2013-01-271-0/+1
| |
* | make bitcoinrpc.cpp UTF-8 conformant againPhilip Kaufmann2013-01-201-1/+1
| | | | | | | | | | - just replaces a character in a comment, which I had problems with when opening the file in Qt Creator IDE
* | Convert fRescan argument to importprivkey to boolPieter Wuille2012-12-191-0/+1
| |
* | Merge pull request #1861 from jgarzik/coinlockGavin Andresen2012-12-121-0/+4
|\ \ | | | | | | Add new RPC "lockunspent", to prevent spending of selected outputs
| * | Add new RPC "lockunspent", to prevent spending of selected outputsJeff Garzik2012-11-151-0/+4
| | | | | | | | | | | | | | | | | | and associated RPC "listlockunspent". This is a memory-only filter, which is empty when a node restarts.
* | | update CClientUIInterface and remove orphan Wx stuffPhilip Kaufmann2012-11-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - fix ThreadSafeMessageBox always displays error icon - allow to specify MSG_ERROR / MSG_WARNING or MSG_INFORMATION without a custom caption / title - allow to specify CClientUIInterface::ICON_ERROR / ICON_WARNING and ICON_INFORMATION (which is default) as message box icon - remove CClientUIInterface::OK from ThreadSafeMessageBox-calls, as the OK button will be set as default, if none is specified - prepend "Bitcoin - " to used captions - rename BitcoinGUI::error() -> BitcoinGUI::message() and add function documentation - change all style parameters and enum flags to unsigned - update code to use that new API - update Client- and WalletModel to use new BitcoinGUI::message() and rename the classes error() method into message() - include the possibility to supply the wanted icon for messages from Client- and WalletModel via "style" parameter
* | | RPC: Forbid RPC username == RPC passwordJeff Garzik2012-11-151-1/+3
|/ / | | | | | | Added security measure.
* | Merge pull request #1977 from Diapolo/rem_printf_redef_rpcWladimir J. van der Laan2012-11-101-3/+0
|\ \ | | | | | | remove printf redefinition from bitcoinrpc.cpp
| * | remove printf redefinition from bitcoinrpc.cppPhilip Kaufmann2012-11-041-3/+0
| | | | | | | | | | | | | | | - as the redefiniton of printf happens in util.h, which is included in bitcoinrpc.cpp, we don't need another redefinition
* | | Merge branch 'http-improvements'Jeff Garzik2012-11-091-12/+57
|\ \ \ | | | | | | | | | | | | The base bits of pull req #1982.
| * | | RPC: HTTP server uses its own ReadHTTPRequestLine()Jeff Garzik2012-11-041-4/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rather than reusing ReadHTTPStatus() from the client mode. The following additional HTTP request validations are added, both in line with existing HTTP client practice: 1) HTTP method must be GET or POST. Most clients use POST, some use GET. Either way, this continues to work. 2) HTTP URI must start with "/" character. Normal URI is "/" (a 1-char string), so this is fine.
| * | | RPC, cosmetic: push down ReadHTTPStatus() calls into ReadHTTP() callersJeff Garzik2012-11-041-11/+19
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ReadHTTPStatus() is currently overloaded: In client mode, it properly parses and receives an HTTP status line. In server mode, it incorrectly parses the HTTP request line as an HTTP status line. This server mode bug has never mattered, because the RPC server never cared about the URI (path) provided in the HTTP request. That will change in the future, so go ahead and begin fixing the problem. This patch is cosmetic, and should result in NO behavior changes. Further renames: ReadHTTPHeader -> ReadHTTPHeaders ReadHTTP -> ReadHTTPMessage
* / / Remove -detachdb and stop's detach argument.Pieter Wuille2012-11-041-5/+3
|/ / | | | | | | | | | | | | | | As the only BDB database left is the wallet, and it is always detached. Also remove IsChainFile() predicate and related chainfile-specific logic.
* | New createmultisig rpc commandGavin Andresen2012-10-291-0/+3
| | | | | | | | | | | | This is to support the signrawtransaction API call; given the public keys involved in a multisig transaction, this gives back the redeemScript needed to sign it.
* | Add gettxout and gettxoutsetinfo RPCsPieter Wuille2012-10-201-0/+4
| |
* | fix wrong (signed/unsigned) printf format specifier in bitcoinrpc.cppPhilip Kaufmann2012-10-051-1/+1
|/ | | | - also includes the required bitcoinstrings.cpp update
* Add constants for HTTP status codesWladimir J. van der Laan2012-10-041-17/+17
|
* Document RPC error codesWladimir J. van der Laan2012-10-041-18/+18
| | | | Replace all "magic values" in RPCError(...) by constants.
* fix -Wformat warnings all over the sourcePhilip Kaufmann2012-10-011-1/+1
|
* Remove stack randomizationPieter Wuille2012-09-281-4/+0
|
* Merge pull request #1862 from kjj2/testportsPieter Wuille2012-09-281-2/+7
|\ | | | | Fix: when testnet=1 specified, change default RPC port to 18332
| * Fix: when testnet=1 specified, change default ports to 18332 and 18333kjj22012-09-241-2/+7
| |
* | Merge pull request #1836 from kjj2/stopdetachWladimir J. van der Laan2012-09-231-3/+8
|\ \ | | | | | | Adds a stopdetach <detach> RPC command. <detach> defaults to true. Wor...
| * | Adds a stopdetach <detach> RPC command. <detach> defaults to true. Works ↵kjj22012-09-221-3/+8
| |/ | | | | | | | | | | | | just like stop, but overrides the commandline/config file -detachdb option. Useful for upgrading, for example. Lets you use fast stops usually, but force a detach when needed. Also, allows you to do a fast stop in a system normally configured for fast stops.
* | Merge pull request #1793 from Diapolo/fix_signed_unsigned_strprintfWladimir J. van der Laan2012-09-211-1/+1
|\ \ | |/ |/| fix signed/unsigned in strprintf and CNetAddr::GetByte()
| * fix signed/unsigned in strprintf and CNetAddr::GetByte()Philip Kaufmann2012-09-121-1/+1
| | | | | | | | | | | | - I checked every occurance of strprintf() in the code and used %u, where unsigned vars are used - the change to GetByte() was made, as ip is an unsigned char
* | Trim trailing whitespace for src/*.{h,cpp}Jeff Garzik2012-09-181-1/+1
|/
* Do not abort if RPC listening for IPv6 failsPieter Wuille2012-09-121-5/+20
| | | | Instead, fall back to IPv4 listening.
* Rename CreateThread to NewThreadWladimir J. van der Laan2012-08-291-1/+1
| | | | Prevent clash with win32 API symbol
* Merge pull request #1672 from gmaxwell/filter_listunspentGregory Maxwell2012-08-241-0/+2
|\ | | | | Listunspent txout address filtering and listaddressgroupings
| * Add txout address filtering to listunspent.Gregory Maxwell2012-08-231-0/+1
| | | | | | | | | | | | This applies on top of the coincontrol listaddressgroupings patch and makes finding eligible outputs from the groups returned by listaddressgroupings possible.
| * Add address groupings RPC from the coincontrol patches.coderrr2012-08-231-0/+1
| | | | | | | | Signed-off-by: Gregory Maxwell <[email protected]>
* | Avoid leaving return types or function attributes on their own lines.Gregory Maxwell2012-08-241-2/+1
|/
* RPC: add facility to enable RPCs to run outside cs_main, wallet locksJeff Garzik2012-08-211-58/+62
| | | | | | | Use with 'stop' and 'help' RPCs. This provides a facility to individually evaluate the locking for an RPC, and potentially make it more parallel.
* Merge pull request #1693 from jgarzik/rpcwalletJeff Garzik2012-08-211-1624/+2
|\ | | | | Move code to new modules rpcwallet.cpp, rpcblockchain.cpp
| * RPC, cosmetic: move more RPC code to new rpcblockchain.cpp moduleJeff Garzik2012-08-211-187/+0
| |
| * RPC, cosmetic: move wallet-related RPCs to new rpcwallet.cpp moduleJeff Garzik2012-08-211-1437/+2
| |
* | Merge pull request #1690 from gavinandresen/signrawtx_nullGregory Maxwell2012-08-211-10/+16
|\ \ | |/ |/| Allow signrawtransaction '...' null null 'hashtype'
| * Allow signrawtransaction '...' null null 'hashtype'Gavin Andresen2012-08-201-10/+16
| | | | | | | | | | | | Allows the user to pass null as the second or third parameter to signrawtransaction, in case you need to (for example) fetch private keys from the wallet but want to specify the hash type.
* | RPC, cosmetic: Create rpcmining.cpp as new home for mining-related RPC codeJeff Garzik2012-08-211-365/+9
| |