aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.cpp
AgeCommit message (Collapse)Author
2013-04-03Clean up shutdown processGavin Andresen
2013-04-03Port Thread* methods to boost::thread_groupGavin Andresen
2013-04-03Rename util.h Sleep --> MilliSleepGavin Andresen
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.
2013-04-02translation base files update 2013-04-02Philip Kaufmann
- also includes a small change to a string in bitcoinrpc.cpp, which is not on Transifex anyway, so is safe to merge
2013-03-21Recommend alertnotifyGavin Andresen
2013-03-07CRPCCommand.unlocked -> CRPCCommand.threadSafefreewil
unlocked could be confused with wallet encryption
2013-03-07make vRPCCommands comment match property namesfreewil
2013-02-14Enable dumpprivkey in safe modeAndrew Poelstra
2013-01-27Add a getaddednodeinfo RPC.Matt Corallo
2013-01-27Add addnode RPC command.Matt Corallo
2013-01-20make bitcoinrpc.cpp UTF-8 conformant againPhilip Kaufmann
- just replaces a character in a comment, which I had problems with when opening the file in Qt Creator IDE
2012-12-19Convert fRescan argument to importprivkey to boolPieter Wuille
2012-12-12Merge pull request #1861 from jgarzik/coinlockGavin Andresen
Add new RPC "lockunspent", to prevent spending of selected outputs
2012-11-26update CClientUIInterface and remove orphan Wx stuffPhilip Kaufmann
- 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
2012-11-15Add new RPC "lockunspent", to prevent spending of selected outputsJeff Garzik
and associated RPC "listlockunspent". This is a memory-only filter, which is empty when a node restarts.
2012-11-15RPC: Forbid RPC username == RPC passwordJeff Garzik
Added security measure.
2012-11-10Merge pull request #1977 from Diapolo/rem_printf_redef_rpcWladimir J. van der Laan
remove printf redefinition from bitcoinrpc.cpp
2012-11-09Merge branch 'http-improvements'Jeff Garzik
The base bits of pull req #1982.
2012-11-04RPC: HTTP server uses its own ReadHTTPRequestLine()Jeff Garzik
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.
2012-11-04RPC, cosmetic: push down ReadHTTPStatus() calls into ReadHTTP() callersJeff Garzik
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
2012-11-04Remove -detachdb and stop's detach argument.Pieter Wuille
As the only BDB database left is the wallet, and it is always detached. Also remove IsChainFile() predicate and related chainfile-specific logic.
2012-11-04remove printf redefinition from bitcoinrpc.cppPhilip Kaufmann
- as the redefiniton of printf happens in util.h, which is included in bitcoinrpc.cpp, we don't need another redefinition
2012-10-29New createmultisig rpc commandGavin Andresen
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.
2012-10-20Add gettxout and gettxoutsetinfo RPCsPieter Wuille
2012-10-05fix wrong (signed/unsigned) printf format specifier in bitcoinrpc.cppPhilip Kaufmann
- also includes the required bitcoinstrings.cpp update
2012-10-04Add constants for HTTP status codesWladimir J. van der Laan
2012-10-04Document RPC error codesWladimir J. van der Laan
Replace all "magic values" in RPCError(...) by constants.
2012-10-01fix -Wformat warnings all over the sourcePhilip Kaufmann
2012-09-28Remove stack randomizationPieter Wuille
2012-09-28Merge pull request #1862 from kjj2/testportsPieter Wuille
Fix: when testnet=1 specified, change default RPC port to 18332
2012-09-24Fix: when testnet=1 specified, change default ports to 18332 and 18333kjj2
2012-09-23Merge pull request #1836 from kjj2/stopdetachWladimir J. van der Laan
Adds a stopdetach <detach> RPC command. <detach> defaults to true. Wor...
2012-09-22Adds a stopdetach <detach> RPC command. <detach> defaults to true. Works ↵kjj2
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.
2012-09-21Merge pull request #1793 from Diapolo/fix_signed_unsigned_strprintfWladimir J. van der Laan
fix signed/unsigned in strprintf and CNetAddr::GetByte()
2012-09-18Trim trailing whitespace for src/*.{h,cpp}Jeff Garzik
2012-09-12fix signed/unsigned in strprintf and CNetAddr::GetByte()Philip Kaufmann
- 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
2012-09-12Do not abort if RPC listening for IPv6 failsPieter Wuille
Instead, fall back to IPv4 listening.
2012-08-29Rename CreateThread to NewThreadWladimir J. van der Laan
Prevent clash with win32 API symbol
2012-08-24Merge pull request #1672 from gmaxwell/filter_listunspentGregory Maxwell
Listunspent txout address filtering and listaddressgroupings
2012-08-24Avoid leaving return types or function attributes on their own lines.Gregory Maxwell
2012-08-23Add txout address filtering to listunspent.Gregory Maxwell
This applies on top of the coincontrol listaddressgroupings patch and makes finding eligible outputs from the groups returned by listaddressgroupings possible.
2012-08-23Add address groupings RPC from the coincontrol patches.coderrr
Signed-off-by: Gregory Maxwell <greg@xiph.org>
2012-08-21RPC: add facility to enable RPCs to run outside cs_main, wallet locksJeff Garzik
Use with 'stop' and 'help' RPCs. This provides a facility to individually evaluate the locking for an RPC, and potentially make it more parallel.
2012-08-21Merge pull request #1693 from jgarzik/rpcwalletJeff Garzik
Move code to new modules rpcwallet.cpp, rpcblockchain.cpp
2012-08-21RPC, cosmetic: move more RPC code to new rpcblockchain.cpp moduleJeff Garzik
2012-08-21RPC, cosmetic: move wallet-related RPCs to new rpcwallet.cpp moduleJeff Garzik
2012-08-21Merge pull request #1690 from gavinandresen/signrawtx_nullGregory Maxwell
Allow signrawtransaction '...' null null 'hashtype'
2012-08-21RPC, cosmetic: Create rpcmining.cpp as new home for mining-related RPC codeJeff Garzik
2012-08-21RPC, cosmetic: de-indent getblocktemplate()Jeff Garzik
2012-08-21RPC: split new 'submitblock' out of 'getblocktemplate'Jeff Garzik