aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.cpp
AgeCommit message (Collapse)Author
2012-04-26listsinceblock: rpc param blockid -> blockhashfreewil
This is more consistent with the rest of the labeling seen by the user when accessing the rpc commands.
2012-04-23Add casts for unavoidable signed/unsigned comparisonsJeff Garzik
At these code sites, it is preferable to cast rather than change a variable's type.
2012-04-21Expose CRPCTable via bitcoinrpc.h for testingPieter Wuille
2012-04-21Encapsulate mapCommands in class CRPCTablePieter Wuille
2012-04-21Encapsulate RPC command dispatch in an array of CRPCCommand'sJeff Garzik
2012-04-17Merge remote-tracking branch 'jgarzik/mempool'Pieter Wuille
2012-04-17Further reduce header dependenciesPieter Wuille
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.
2012-04-17Move CWalletDB code to new walletdb module.Jeff Garzik
In addition to standard code separation, this change opens the door to fixing several include inter-dependencies.
2012-04-17Remove headers.hPieter Wuille
2012-04-15Fix loop index var types, fixing many minor sign comparison warningsJeff Garzik
foo.size() typically returns an unsigned integral type; make loop variables match those types' signedness.
2012-04-15The string class returns string::npos, when find() fails.Jeff Garzik
Noticed when sign-comparison warnings were enabled.
2012-04-15CTxMemPool: encapsulate AddToMemoryPoolUnchecked(), RemoveFromMemoryPool(),Jeff Garzik
and nPooledTx
2012-04-15fix warnings: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]Wladimir J. van der Laan
2012-04-12Merge pull request #1041 from gavinandresen/listtransactionsfixGavin Andresen
Bug fix listtransactions from/count handling.
2012-04-11Use filesystem::path instead of manual string tinkeringPieter Wuille
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.
2012-04-11Remove path.make_preferred() calls, and fix compiler error in bitcoinrpc RE: ↵Gavin Andresen
boost::system
2012-04-10Merge pull request #1046 from laanwj/2012_04_rpcporterrorWladimir J. van der Laan
Show error message instead of exception crash when unable to bind RPC port
2012-04-09Merge pull request #1052 from sipa/scopedlocksPieter Wuille
Use scoped locks instead of CRITICAL_BLOCK
2012-04-09Use scoped locks instead of CRITICAL_BLOCKPieter Wuille
2012-04-06Show error message instead of exception crash when unable to bind RPC portWladimir J. van der Laan
Fixes issue #875
2012-04-06fixed small error in bitcoinrpc.cppPhilip Kaufmann
2012-04-06updated bitcoinrpc.cpp to use make_preferred() and removed double inclusion ↵Philip Kaufmann
of boost/filesystem.hpp
2012-04-05Merge pull request #1042 from gavinandresen/use_ssl_cleanupGavin Andresen
Remove USE_SSL #define
2012-04-04Remove USE_SSL #defineGavin Andresen
2012-04-04Bug fix listtransactions from/count handling.Gavin Andresen
2012-04-04Enable addmultisigaddress RPC call for main networkGavin Andresen
2012-04-04Use a messagebox to display the error when -server is provided without ↵Wladimir J. van der Laan
providing a rpc password
2012-04-04support RPC stop and encryptwallet with UIWladimir J. van der Laan
2012-04-03VC2010 compile fixesWladimir J. van der Laan
2012-03-22Introduce explicit -walletupgrade optionPieter Wuille
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.
2012-03-21replace call to PrintConsole with call to error()Wladimir J. van der Laan
As these are equivalent functions, this cleans up the source a bit. Also remove PrintConsole() as this was the only use.
2012-03-10Resolves issue #922 - "wallet passphrase timeout of several years doesn't work"Gregory Maxwell
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.
2012-02-26bitcoind changes to stop storing settings in wallet.dat.Gavin Andresen
2012-02-22Cleanup JSON-RPC getblock output to be consistentLuke Dashjr
- Add "size" and "bits" - Rename "blockcount" to "height" - Rename "hashprevious" and "hashnext" to "previousblockhash" and "nextblockhash" (respectively)
2012-02-17Merge branch 'testnetmining' of github.com:gavinandresen/bitcoin-gitGavin Andresen
2012-02-16Fix issue #848 : broken mining on testnetGavin Andresen
2012-02-16Symbolic names for threadsPieter Wuille
Introduce an enum threadId, and use symbolic indices when accessing vnThreadsRunning.
2012-02-11Extra wallet locking fixesPieter Wuille
* 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
2012-02-11Fix wallet locking lockingPieter Wuille
2012-02-11Fix #822Pieter Wuille
2012-02-07Update all copyrights to 2012Gavin Andresen
2012-02-05Have bitcoind recommend a secure RPC password. Increase invalid password delay.Gregory Maxwell
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.
2012-01-27Bitcoin-Qt signmessage GUI (pull request #582)Luke Dashjr
2012-01-23Fixed addmultisigaddress if looking up public keys from locked wallets.Gavin Andresen
2012-01-14Added mintime and curtime to RPC getmemorypoolForrest Voight
2012-01-14Separated COINBASE_FLAGS out into main.h and made RPC getmemorypool return itForrest Voight
2012-01-13Remove base58 encoding from validateaddress/addmultisigaddressGavin Andresen
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.
2012-01-13Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16).Gavin Andresen
2012-01-13Merge branch 'getmininginfo' of https://github.com/luke-jr/bitcoinGavin Andresen
2012-01-12Compile with extra warnings turned on. And more makefile/code tidying up.Gavin Andresen
This turns on most gcc warnings, and removes some unused variables and other code that triggers warnings. Exceptions are: -Wno-sign-compare : triggered by lots of comparisons of signed integer to foo.size(), which is unsigned. -Wno-char-subscripts : triggered by the convert-to-hex functions (I may fix this in a future commit).