aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | | 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
| |
* | Merge branch 'getmininginfo' of https://github.com/luke-jr/bitcoinGavin Andresen2012-01-131-3/+24
|\ \
| * | collect more info on tx pooling and block finding for getmininginfoLuke Dashjr2012-01-121-0/+3
| | |
| * | Add new "getmininginfo" JSON-RPC method, with mining-only fields moved out ↵Luke Dashjr2012-01-121-3/+21
| | | | | | | | | | | | of "getinfo"
* | | Compile with extra warnings turned on. And more makefile/code tidying up.Gavin Andresen2012-01-121-1/+1
|/ / | | | | | | | | | | | | 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).
* | Compressed pubkeysPieter Wuille2012-01-091-0/+3
| | | | | | | | | | | | | | | | | | | | This patch enabled compressed pubkeys when -compressedpubkeys is passed. These are 33 bytes instead of 65, and require only marginally more CPU power when verifying. Compressed pubkeys have a different corresponding address, so it is determined at generation. When -compressedpubkeys is given, all newly generated addresses will use a compressed key, while older/other addresses keep using normal keys. Unpatched clients will relay and verify these transactions.
* | New RPC commands: getblockhash and getblockGavin Andresen2011-12-231-26/+94
| |
* | Fix broken ExtractAddress (refactored, made callers check for addresses in ↵Gavin Andresen2011-12-221-3/+5
| | | | | | | | keystore if they care)
* | Revert "Use standard C99 (and Qt) types for 64-bit integers"Wladimir J. van der Laan2011-12-211-53/+51
| | | | | | | | This reverts commit 21d9f36781604e4ca9fc35dc65265593423b73e9.
* | Use standard C99 (and Qt) types for 64-bit integersLuke Dashjr2011-12-201-51/+53
| |
* | Merge branch 'op_eval'Gavin Andresen2011-12-201-2/+102
|\ \
| * | Use block times for 'hard' OP_EVAL switchover, and refactored EvalScriptGavin Andresen2011-12-191-2/+2
| | | | | | | | | | | | | | | | | | so it takes a flag for how to interpret OP_EVAL. Also increased IsStandard size of scriptSigs to 500 bytes, so a 3-of-3 multisig transaction IsStandard.
| * | Disable addmultisigaddress if not testnetGavin Andresen2011-12-191-0/+2
| | |
| * | OP_EVAL implementationGavin Andresen2011-12-191-70/+52
| | | | | | | | | | | | | | | | | | OP_EVAL is a new opcode that evaluates an item on the stack as a script. It enables a new type of bitcoin address that needs an arbitrarily complex script to redeem.
| * | Support 3 new multisignature IsStandard transactionsGavin Andresen2011-12-191-1/+117
| | | | | | | | | | | | | | | Initial support for (a and b), (a or b), and 2-of-3 escrow transactions (where a, b, and c are keys).
* | | Use std::numeric_limits<> for typesafe INT_MAX/etcGavin Andresen2011-12-191-4/+4
| | |
* | | Merge branch 'txn_block_info' of https://github.com/luke-jr/bitcoinGavin Andresen2011-12-191-1/+7
|/ /
* | Merge pull request #574 from sipa/dumpprivkeyGavin Andresen2011-12-191-5/+10
|\ \ | | | | | | Dumpprivkey
| * | Key import and exportPieter Wuille2011-12-171-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces two new RPC calls: * dumpprivkey: retrieve the private key corresponding to an address * importprivkey: add a private key to your wallet The private key format is analoguous to the address format. It is a 51-character base58-encoded string, that includes a version number and a checksum. Includes patch by mhanne: * add optional account parameter for importprivkey, if omitted use default
| * | Preparations for key import/exportPieter Wuille2011-12-171-0/+1
| | |
| * | Add GetSecret() and GetKeys() to CKeyStorePieter Wuille2011-12-171-1/+1
| | |
* | | Implement BIP 14 : separate protocol version from client versionGavin Andresen2011-12-191-1/+2
|/ /
* | Speed up RPC authentication (reworked pull from Joel Katz)Gavin Andresen2011-12-011-7/+5
| |
* | Implement an mlock()'d string class for storing passphrasesDylan Noblesmith2011-11-261-34/+14
| | | | | | | | | | | | | | SecureString is identical to std::string except with secure_allocator substituting for std::allocator. This makes casting between them impossible, so converting between the two at API boundaries requires calling ::c_str() for now.
* | Merge pull request #632 from mndrix/deprecate-getblocknumberGavin Andresen2011-11-211-2/+4
|\ \ | |/ |/| Deprecate RPC getblocknumber
| * Deprecate RPC getblocknumberMichael Hendricks2011-11-111-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | This RPC is exactly identical to getblockcount. This duplication dates back to commit 22f721dbf23cf5ce9e3ded9bcfb65a3894cc0f8c when Satoshi created the RPC interface. There's no need to have both, so we standardize on "count" which matches the naming convention in getconnectioncount. Following the tradition established with previously deprecated APIs, getblocknumber continues to work, but it's not listed in the help system.
* | Obsolete keypool and make sure database removes log files on shutdown.Gavin Andresen2011-11-151-1/+10
| |
* | Do not launch Shutdown in a new thread in case we are running the UI.Wladimir J. van der Laan2011-11-121-2/+7
|/ | | | This leads to the bitcoin core being shut down while the UI is accessing it, and generally results in a segmentation fault or crash. In case it is desirable to make it possible to shutdown the GUI from its RPC server, we'll need to implement a signal for it. For the mean time, this is a safe stopgap.
* Bugfix: "bits" should be a hex-string, not a number (that just doesn't make ↵Luke Dashjr2011-10-061-1/+8
| | | | sense)
* Use C's const char* for status strings rather than C++'s std::string, which ↵David Joel Schwartz2011-10-051-7/+8
| | | | is slower
* Merge branch 'listsinceblock' of https://github.com/cdhowie/bitcoinGavin Andresen2011-10-051-0/+66
|