aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1151 from freewil/listsinceblock-blockhashGavin Andresen2012-04-261-2/+2
|\ | | | | listsinceblock: rpc param blockid -> blockhash
| * listsinceblock: rpc param blockid -> blockhashfreewil2012-04-261-2/+2
| | | | | | | | | | This is more consistent with the rest of the labeling seen by the user when accessing the rpc commands.
* | remove strange debug message from listsinceblockfreewil2012-04-261-1/+0
|/
* Add casts for unavoidable signed/unsigned comparisonsJeff Garzik2012-04-231-4/+6
| | | | | At these code sites, it is preferable to cast rather than change a variable's type.
* Expose CRPCTable via bitcoinrpc.h for testingPieter Wuille2012-04-211-26/+5
|
* Encapsulate mapCommands in class CRPCTablePieter Wuille2012-04-211-27/+38
|
* Encapsulate RPC command dispatch in an array of CRPCCommand'sJeff Garzik2012-04-211-84/+89
|
* Merge remote-tracking branch 'jgarzik/mempool'Pieter Wuille2012-04-171-1/+1
|\
| * CTxMemPool: encapsulate AddToMemoryPoolUnchecked(), RemoveFromMemoryPool(),Jeff Garzik2012-04-151-1/+1
| | | | | | | | and nPooledTx
* | Further reduce header dependenciesPieter Wuille2012-04-171-5/+5
| | | | | | | | | | | | | | This commit removes the dependency of serialize.h on PROTOCOL_VERSION, and makes this parameter required instead of implicit. This is much saner, as it makes the places where changing a version number can have an influence obvious.
* | Move CWalletDB code to new walletdb module.Jeff Garzik2012-04-171-0/+1
| | | | | | | | | | In addition to standard code separation, this change opens the door to fixing several include inter-dependencies.
* | Remove headers.hPieter Wuille2012-04-171-1/+4
| |
* | Fix loop index var types, fixing many minor sign comparison warningsJeff Garzik2012-04-151-1/+1
| | | | | | | | | | foo.size() typically returns an unsigned integral type; make loop variables match those types' signedness.
* | The string class returns string::npos, when find() fails.Jeff Garzik2012-04-151-1/+1
|/ | | | Noticed when sign-comparison warnings were enabled.
* fix warnings: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]Wladimir J. van der Laan2012-04-151-0/+4
|
* Merge pull request #1041 from gavinandresen/listtransactionsfixGavin Andresen2012-04-121-15/+23
|\ | | | | Bug fix listtransactions from/count handling.
| * Bug fix listtransactions from/count handling.Gavin Andresen2012-04-041-15/+23
| |
* | Use filesystem::path instead of manual string tinkeringPieter Wuille2012-04-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Where possible, use boost::filesystem::path instead of std::string or char* for filenames. This avoids a lot of manual string tinkering, in favor of path::operator/. GetDataDir is also reworked significantly, it now only keeps two cached directory names (the network-specific data dir, and the root data dir), which are decided through a parameter instead of pre-initialized global variables. Finally, remove the "upgrade from 0.1.5" case where a debug.log in the current directory has to be removed.
* | Remove path.make_preferred() calls, and fix compiler error in bitcoinrpc RE: ↵Gavin Andresen2012-04-111-3/+1
| | | | | | | | boost::system
* | Merge pull request #1046 from laanwj/2012_04_rpcporterrorWladimir J. van der Laan2012-04-101-3/+15
|\ \ | | | | | | Show error message instead of exception crash when unable to bind RPC port
| * | Show error message instead of exception crash when unable to bind RPC portWladimir J. van der Laan2012-04-061-3/+15
| | | | | | | | | | | | Fixes issue #875
* | | Merge pull request #1052 from sipa/scopedlocksPieter Wuille2012-04-091-3/+4
|\ \ \ | | | | | | | | Use scoped locks instead of CRITICAL_BLOCK
| * | | Use scoped locks instead of CRITICAL_BLOCKPieter Wuille2012-04-091-3/+4
| |/ /
* | | fixed small error in bitcoinrpc.cppPhilip Kaufmann2012-04-061-2/+2
| | |
* | | updated bitcoinrpc.cpp to use make_preferred() and removed double inclusion ↵Philip Kaufmann2012-04-061-13/+15
|/ / | | | | | | of boost/filesystem.hpp
* | Merge pull request #1042 from gavinandresen/use_ssl_cleanupGavin Andresen2012-04-051-27/+1
|\ \ | | | | | | Remove USE_SSL #define
| * | Remove USE_SSL #defineGavin Andresen2012-04-041-27/+1
| |/
* / Enable addmultisigaddress RPC call for main networkGavin Andresen2012-04-041-2/+0
|/
* Use a messagebox to display the error when -server is provided without ↵Wladimir J. van der Laan2012-04-041-8/+9
| | | | providing a rpc password
* support RPC stop and encryptwallet with UIWladimir J. van der Laan2012-04-041-14/+3
|
* VC2010 compile fixesWladimir J. van der Laan2012-04-031-7/+7
|
* Introduce explicit -walletupgrade optionPieter Wuille2012-03-221-0/+1
| | | | | | | | | | | | | | Do not automatically change the wallet format unless the user takes an explicit action that implies an upgrade (encrypting, for now), or uses -walletupgrade. -walletupgrade optionally takes an integer argument: the client version up to which upgrading is allowed. Without an argument, it is upgraded to latest supported version. If an argument to -walletupgrade is provided at the time the wallet is created, the new wallet will initially not use features beyond that version. Third, the current wallet version number is reported in getinfo.
* replace call to PrintConsole with call to error()Wladimir J. van der Laan2012-03-211-20/+2
| | | | | As these are equivalent functions, this cleans up the source a bit. Also remove PrintConsole() as this was the only use.
* Resolves issue #922 - "wallet passphrase timeout of several years doesn't work"Gregory Maxwell2012-03-101-3/+3
| | | | | | 2^31 milliseconds is only about 25 days. Also clamps Sleep() to 10 years, because it currently sleeps for 0 seconds when the sleep time would cross 2^31 seconds since the epoch. Hopefully boost will be fixed by 2028.
* bitcoind changes to stop storing settings in wallet.dat.Gavin Andresen2012-02-261-7/+5
|
* Cleanup JSON-RPC getblock output to be consistentLuke Dashjr2012-02-221-10/+17
| | | | | | - Add "size" and "bits" - Rename "blockcount" to "height" - Rename "hashprevious" and "hashnext" to "previousblockhash" and "nextblockhash" (respectively)
* Merge branch 'testnetmining' of github.com:gavinandresen/bitcoin-gitGavin Andresen2012-02-171-2/+2
|\
| * Fix issue #848 : broken mining on testnetGavin Andresen2012-02-161-2/+2
| |
* | Symbolic names for threadsPieter Wuille2012-02-161-5/+5
|/ | | | | Introduce an enum threadId, and use symbolic indices when accessing vnThreadsRunning.
* Extra wallet locking fixesPieter Wuille2012-02-111-8/+16
| | | | | | | * Fix sign error in calculation of seconds to sleep * Do not mix GetTime() (seconds) and Sleep() (milliseconds) * Do not sleep forever if walletlock() is called * Do locking within critical section
* Fix wallet locking lockingPieter Wuille2012-02-111-16/+14
|
* Fix #822Pieter Wuille2012-02-111-1/+1
|
* Update all copyrights to 2012Gavin Andresen2012-02-071-1/+1
|
* Have bitcoind recommend a secure RPC password. Increase invalid password delay.Gregory Maxwell2012-02-051-7/+16
| | | | | | | | | | | | Help users avoid insecure configurations a bit by recommending a secure RPC password and increasing the incorrect password delay. This may open up a RPC DOS for users with exposed RPC ports and short passwords. Since users shouldn't have exposed RPC ports OR short passwords, the DOS risk is preferable to the compromise risk. Also logs the client IP address for incorrect attempts.
* Bitcoin-Qt signmessage GUI (pull request #582)Luke Dashjr2012-01-271-2/+0
|
* Fixed addmultisigaddress if looking up public keys from locked wallets.Gavin Andresen2012-01-231-1/+4
|
* Added mintime and curtime to RPC getmemorypoolForrest Voight2012-01-141-0/+4
|
* Separated COINBASE_FLAGS out into main.h and made RPC getmemorypool return itForrest Voight2012-01-141-0/+2
|
* Remove base58 encoding from validateaddress/addmultisigaddressGavin Andresen2012-01-131-19/+4
| | | | base58-encoding of full/compressed public keys needs more thought; it probably makes sense to define a base58 encoding that includes a version byte and a checksum. So just support hex and bitcoin-address encodings for now.
* Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16).Gavin Andresen2012-01-131-19/+40
|