aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmisc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* move rpc* to rpc/Daniel Cousens2016-01-211-398/+0
|
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* Fix crash in validateaddress with -disablewalletWladimir J. van der Laan2015-11-091-2/+2
| | | | Fix a null pointer dereference in validateaddress with -disablewallet. Also add a regression testcase.
* [Univalue] add univalue over subtreeJonas Schnelli2015-10-011-1/+1
| | | | similar to secp256k1 include and compile univalue over a subtree
* Reformat validateaddress help, add missing iswatchonly description.Pavel Janík2015-08-101-4/+5
|
* Rationalize currency unit to "BTC"Ross Nicoll2015-08-031-2/+2
| | | | | | | | | Previously various user-facing strings have used inconsistent currency units "BTC", "btc" and "bitcoins". This adds a single constant and uses it for each reference to the currency unit. Also adds a description of the unit for --maxtxfee, and adds the missing "amount" field description to the (deprecated) move RPC command.
* TRIVIAL: Missing includesJorge Timón2015-07-231-0/+1
|
* Testing infrastructure: mocktime fixesGavin Andresen2015-06-241-1/+10
| | | | | | | | | | New, undocumented-on-purpose -mocktime=timestamp command-line argument to startup with mocktime set. Needed because time-related blockchain sanity checks are done on startup, before a test has a chance to make a setmocktime RPC call. And changed the setmocktime RPC call so calling it will not result in currently connected peers being disconnected due to inactivity timeouts.
* Return all available information via validateaddressdexX72015-06-091-15/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `"validateaddress"` omits some information, even in cases where is it available. The primary motivation is to be able to retrieve redeemScripts, after using `"addmultisigaddress"`, when not all keys are available in the keystore, but the redeemScript actually is. The output of `"validateaddress"` with this commit: Keys not available: ```js validateaddress "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3" { "isvalid": true, "address": "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3", "scriptPubKey": "76a914fa20d564550b105787f7ce3a9ad7fd9a45cd407088ac", "ismine": false, "iswatchonly": false, "isscript": false } ``` ```js validateaddress "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK" { "isvalid": true, "address": "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK", "scriptPubKey": "a9146769c19a16c9400b908756e19a4d2afb9e9760e187", "ismine": false, "iswatchonly": false, "isscript": true } ``` After adding the redeemScript: ```js addmultisigaddress 2 '["02537357B156A33306A7A014A3748631C59DF405B56F11BA4AA4A3CE81501AF095","02F1FB200390E7864EF4450C07B15988179A57C3CF3A878F668E1070CB615749FE"]' 2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK validateaddress "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK" { "isvalid": true, "address": "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK", "scriptPubKey": "a9146769c19a16c9400b908756e19a4d2afb9e9760e187", "ismine": false, "iswatchonly": false, "isscript": true, "script": "multisig", "hex": "522102537357b156a33306a7a014a3748631c59df405b56f11ba4aa4a3ce81501af0952102f1fb200390e7864ef4450c07b15988179a57c3cf3a878f668e1070cb615749fe52ae", "addresses": [ "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3", "mmSKNtbYYHRrhTLKiok5TuYrGEs4Y2A4k6" ], "sigsrequired": 2, "account": "" } ``` All keys available: ```js validateaddress "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3" { "isvalid": true, "address": "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3", "scriptPubKey": "76a914fa20d564550b105787f7ce3a9ad7fd9a45cd407088ac", "ismine": true, "iswatchonly": false, "isscript": false, "pubkey": "02537357b156a33306a7a014a3748631c59df405b56f11ba4aa4a3ce81501af095", "iscompressed": true, "account": "" } ``` ```js validateaddress "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK" { "isvalid": true, "address": "2N2g2H7gjA8a11g1yKBgh5VTqndyvbnWpBK", "scriptPubKey": "a9146769c19a16c9400b908756e19a4d2afb9e9760e187", "ismine": true, "iswatchonly": false, "isscript": true, "script": "multisig", "hex": "522102537357b156a33306a7a014a3748631c59df405b56f11ba4aa4a3ce81501af0952102f1fb200390e7864ef4450c07b15988179a57c3cf3a878f668e1070cb615749fe52ae", "addresses": [ "n4KWZKx349gdMQGgTnZ8W6WfgSwybkGSK3", "mmSKNtbYYHRrhTLKiok5TuYrGEs4Y2A4k6" ], "sigsrequired": 2, "account": "" } ```
* fix missing univalue types during constructingJonas Schnelli2015-06-041-1/+1
|
* Remove JSON Spirit wrapper, remove JSON Spirit leftoversJonas Schnelli2015-06-041-11/+11
| | | | | | - implement find_value() function for UniValue - replace all Array/Value/Object types with UniValues, remove JSON Spirit to UniValue wrapper - remove JSON Spirit sources
* remove JSON Spirit UniValue wrapperJonas Schnelli2015-06-041-9/+9
|
* expicit set UniValue type to avoid empty valuesJonas Schnelli2015-06-041-6/+6
|
* extend conversion to UniValueJonas Schnelli2015-06-041-2/+2
|
* Convert tree to using univalue. Eliminate all json_spirit uses.Jeff Garzik2015-06-041-3/+2
|
* privacy: Stream isolation for TorWladimir J. van der Laan2015-04-171-1/+1
| | | | | | | | | | | | | According to Tor's extensions to the SOCKS protocol (https://gitweb.torproject.org/torspec.git/tree/socks-extensions.txt) it is possible to perform stream isolation by providing authentication to the proxy. Each set of credentials will create a new circuit, which makes it harder to correlate connections. This patch adds an option, `-proxyrandomize` (on by default) that randomizes credentials for every outgoing connection, thus creating a new circuit. 2015-03-16 15:29:59 SOCKS5 Sending proxy authentication 3842137544:3256031132
* [Move Only] Move wallet related things to src/wallet/Jonas Schnelli2015-03-121-2/+2
| | | | could once be renamed from /src/wallet to /src/legacywallet.
* Merge #5706: fix crash: RPC \Wladimir J. van der Laan2015-02-201-0/+2
|\ | | | | | | e5d9d77 fix crash: createmultisig and addmultisigaddress (fsb4000)
| * fix crash: createmultisig and addmultisigaddressfsb40002015-01-251-0/+2
| |
* | Removed main.h dependency from rpcserver.cppEric Lombrozo2015-01-281-0/+16
| | | | | | | | | | | | | | | | Rebased by @laanwj: - update for RPC methods added since 84d13ee: setmocktime, invalidateblock, reconsiderblock. Only the first, setmocktime, required a change, the other two are thread safe.
* | Merge pull request #5575Wladimir J. van der Laan2015-01-261-1/+1
|\ \ | |/ |/| | | 7b782f5 RPCWallet: Notate all account stuff as deprecated (Luke Dashjr)
| * RPCWallet: Notate all account stuff as deprecatedLuke Dashjr2014-12-301-1/+1
| |
* | namespace: drop most boost namespaces and a few header cleanupsCory Fields2015-01-021-1/+0
| | | | | | | | A few boost::asio were left around because they're very wordy otherwise.
* | namespace: remove boost namespace pollutionCory Fields2015-01-021-1/+0
| |
* | Merge #4964 fromJeff Garzik2014-12-311-0/+5
|\ \ | | | | | | | | | branch 'validateaddress-return-scriptpubkey' of git://github.com/petertodd/bitcoin into merge-4964
| * | Add scriptPubKey field to validateaddress RPC callPeter Todd2014-09-231-0/+5
| | |
* | | Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| |/ |/| | | | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* | Update comments in src/rpc* to be doxygen compatibleMichael Ford2014-11-201-5/+5
| |
* | regression test only setmocktime RPC callGavin Andresen2014-11-171-0/+20
| |
* | Separate protocol versioning from clientversionCory Fields2014-10-291-0/+1
| |
* | script: move CScriptID to standard.h and add a ctor for creating them from ↵Cory Fields2014-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CScripts This allows for a reversal of the current behavior. This: CScript foo; CScriptID bar(foo.GetID()); Becomes: CScript foo; CScriptID bar(foo); This way, CScript is no longer dependent on CScriptID or Hash();
* | Add fTestnetToBeDeprecatedFieldRPC to CChainParamsjtimon2014-10-101-1/+1
|/
* Move CTxDestination from script/script to script/standardPieter Wuille2014-09-161-2/+1
|
* remove unneeded cast in rpcmisc.cppPhilip Kaufmann2014-09-091-2/+2
|
* 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.