aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmisc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add warning comment to getinfoWladimir J. van der Laan2014-07-281-0/+13
| | | | | Warn that people should not add new information, or change current information returned by getinfo.
* Merge pull request #4045Wladimir J. van der Laan2014-07-071-21/+31
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a3e192a replaced MINE_ with ISMINE_ (JaSK) 53a2148 fixed bug where validateaddress doesn't display information (JaSK) f28707a fixed bug in ListReceived() (JaSK) 519dd1c Added MINE_ALL = (spendable|watchonly) (JaSK) 23b0506 Fixed some stuff in TransactionDesc (JaSK) 80dda36 removed default argument values for ismine filter (JaSK) d5087d1 Use script matching rather than destination matching for watch-only. (Pieter Wuille) 0fa2f88 added includedWatchonly argument to listreceivedbyaddress/...account (JaSK) f87ba3d added includeWatchonly argument to 'gettransaction' because it affects balance calculation (JaSK) a5c6c5d fixed tiny glitch and improved readability like laanwj suggested (JaSK) d7d5d23 Added argument to listtransactions and listsinceblock to include watchonly addresses (JaSK) 952877e Showing 'involvesWatchonly' property for transactions returned by 'listtransactions' and 'listsinceblock'. It is only appended when the transaction involves a watchonly address. (JaSK) 83f3543 Added argument to listaccounts to include watchonly addresses (JaSK) d4640d7 Added argument to getbalance to include watchonly addresses and fixed errors in balance calculation. (JaSK) d2692f6 Watchonly transactions are marked in transaction history (JaSK) ffd40da Watchonly balances are shown separately in gui. (JaSK) 2935b21 qt: Hide unspendable outputs in coin control (Wladimir J. van der Laan) c898846 Add support for watch-only addresses (Pieter Wuille)
| * replaced MINE_ with ISMINE_JaSK2014-07-021-6/+6
| |
| * fixed bug where validateaddress doesn't display informationJaSK2014-07-021-1/+1
| |
| * fixed tiny glitch and improved readability like laanwj suggestedJaSK2014-07-021-2/+2
| |
| * Watchonly balances are shown separately in gui.JaSK2014-07-021-1/+1
| |
| * Add support for watch-only addressesPieter Wuille2014-07-021-21/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes: * Add Add/Have WatchOnly methods to CKeyStore, and implementations in CBasicKeyStore. * Add similar methods to CWallet, and support entries for it in CWalletDB. * Make IsMine in script/wallet return a new enum 'isminetype', rather than a boolean. This allows distinguishing between spendable and unspendable coins. * Add a field fSpendable to COutput (GetAvailableCoins' return type). * Mark watchonly coins in listunspent as 'watchonly': true. * Add 'watchonly' to validateaddress, suppressing script/pubkey/... in this case. Based on a patch by Eric Lombrozo. Conflicts: src/qt/walletmodel.cpp src/rpcserver.cpp src/wallet.cpp
* | remove SOCKS4 support from core and GUIPhilip Kaufmann2014-07-071-1/+1
| | | | | | | | - now we support SOCKS5 only
* | Move fee policy out of coreGavin Andresen2014-07-031-1/+1
|/
* minor code format fix in rpc-related filesPhilip Kaufmann2014-06-271-1/+1
|
* Remove unnecessary dependencies for bitcoin-cliWladimir J. van der Laan2014-06-251-1/+1
| | | | | | | | | This commit removes all the unnecessary dependencies (key, core, netbase, sync, ...) from bitcoin-cli. To do this it shards the chain parameters into BaseParams, which contains just the RPC port and data directory (as used by utils and bitcoin-cli) and Params, with the rest.
* Move network-time related functions to timedata.cpp/hWladimir J. van der Laan2014-06-251-0/+1
| | | | | The network time-offset-mangement functions from util.cpp are moved to timedata.(cpp|h). This breaks the dependency of util on netbase.
* Get rid of Params().RPCisTestNet()jtimon2014-06-171-1/+1
|
* Merge pull request #3824Wladimir J. van der Laan2014-06-091-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f0a83fc Use Params().NetworkID() instead of TestNet() from the payment protocol (jtimon) 2871889 net.h was using std namespace through chainparams.h included in protocol.h (jtimon) c8c52de Replace virtual methods with static attributes, chainparams.h depends on protocol.h instead of the other way around (jtimon) a3d946e Get rid of TestNet() (jtimon) 6fc0fa6 Add RPCisTestNet chain parameter (jtimon) cfeb823 Add RequireStandard chain parameter (jtimon) 21913a9 Add AllowMinDifficultyBlocks chain parameter (jtimon) d754f34 Move majority constants to chainparams (jtimon) 8d26721 Get rid of RegTest() (jtimon) cb9bd83 Add DefaultCheckMemPool chain parameter (jtimon) 2595b9a Add DefaultMinerThreads chain parameter (jtimon) bfa9a1a Add MineBlocksOnDemand chain parameter (jtimon) 1712adb Add MiningRequiresPeers chain parameter (jtimon)
| * Add RPCisTestNet chain parameterjtimon2014-06-041-1/+1
| |
* | Type-safe CFeeRate classGavin Andresen2014-06-061-2/+2
|/ | | | | | | | Use CFeeRate instead of an int64_t for quantities that are fee-per-size. Helps prevent unit-conversion mismatches between the wallet, relaying, and mining code.
* removed a few unnecessary castsKamil Domanski2014-05-131-3/+3
|
* switch from boost int types to <stdint.h>Kamil Domanski2014-05-131-3/+3
|
* Merge pull request #4138Wladimir J. van der Laan2014-05-121-1/+1
|\ | | | | | | 783b182 Remove dummy PRIszX macros for formatting (Wladimir J. van der Laan)
| * Remove dummy PRIszX macros for formattingWladimir J. van der Laan2014-05-061-1/+1
| | | | | | | | | | | | | | | | | | Size specifiers are no longer needed now that we use typesafe tinyformat for string formatting, instead of the system's sprintf. No functional changes. This continues the work in #3735.
* | Check redeemScript size does not exceed 520 byte limitPeter Todd2014-05-081-2/+7
|/ | | | | | | | | | | | redeemScripts >520bytes can't be spent due to the MAX_SCRIPT_ELEMENT_SIZE limit; previously the addmultisigaddress and createmultisig RPC calls would let you violate that limit unknowingly. Also made the wallet code itself check the redeemScript prior to adding it to the wallet, which in the (rare) instance that a user has added an invalid oversized redeemScript to their wallet causes an error on startup. The affected key isn't added to the wallet; other keys are unaffected.
* Fix typo in `createmultisig` helpWladimir J. van der Laan2014-03-311-1/+1
| | | | iCreateMultisig is not a thing.
* Add a "relayfee" field to getinfo.Gregory Maxwell2014-03-131-2/+4
| | | | | | | | | | | This shows the minimum relay fee for non-free transactions in btc/kb. The armory developers requested this so that they can prevent users from creating transactions that not even their local bitcoind will relay. This also slightly reorders the getinfo output so that the fee related lines are grouped and changes the help text to reflect that the units are btc/kb.
* Copyright header updates s/2013/2014 on files whose last git commit was done ↵gubatron2014-02-091-1/+1
| | | | | | in 2014. contrib/devtools/fix-copyright-headers.py script to be able to perform this maintenance task with ease during the rest of the year, every year. Modifications to contrib/devtools/README.md to document what fix-copyright-headers.py does.
* Remove redundant .c_str()sWladimir J. van der Laan2014-01-231-2/+2
| | | | | | | After the tinyformat switch sprintf() family functions support passing actual std::string objects. Remove unnecessary c_str calls (236 of them) in logging and formatting.
* small headers ordering cleanupPhilip Kaufmann2014-01-111-2/+1
| | | | | | - keep headers in alphabetical order - fix Makefile.am (2 files in 1 line - leftover) - remove some spaces etc.
* Move `verifymessage` from rpcwallet to rpcmiscWladimir J. van der Laan2013-12-131-0/+51
| | | | Enables it in --disable-wallet compiles.
* Move `createmultisig` from rpcwallet to rpcmiscWladimir J. van der Laan2013-12-131-0/+101
| | | | Enables it in --disable-wallet compiles.
* Move `validateaddress` from rpcwallet to rpcmiscWladimir J. van der Laan2013-12-131-0/+85
| | | | | Enables it in --disable-wallet compiles. Delimit wallet-using part using #ifdef ENABLE_WALLET.
* Move `nTransactionFee` from main.cpp to wallet.cppWladimir J. van der Laan2013-12-131-2/+0
| | | | | Transaction fee is only used by the wallet. No need for it to be in main.cpp.
* Move `getinfo` from rpcnet to rpcmiscWladimir J. van der Laan2013-12-131-0/+63
| | | | | | `getinfo` is a general info method which shows information from multiple sources, it doesn't belong in rpcnet.cpp or any of the other current RPC implementation files.
* add new RPC implementation file `rpcmisc.cpp`Wladimir J. van der Laan2013-12-131-0/+28