aboutsummaryrefslogtreecommitdiff
path: root/src/rpcwallet.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Introduce BlockMap type for mapBlockIndexPieter Wuille2014-09-041-1/+1
|
* Fix typo in gettransaction helpDerek7012014-08-081-1/+1
|
* Consolidate CTransaction hex encode/decode into core_io.h, core_{read,write}.cppJeff Garzik2014-07-291-3/+2
|
* Revert "Add -respendnotify option and new RPC data"Wladimir J. van der Laan2014-07-211-22/+0
| | | | This reverts commit 9004798e62e987ddf50030b17fa1881b63dd5e45.
* Add vout to ListTransactions outputCozz Lovan2014-07-151-26/+31
|
* `getrawchangeaddress` should fail when keypool exhaustedWladimir J. van der Laan2014-07-111-1/+1
| | | | | | | | | | | | An user on IRC reported an issue where `getrawchangeaddress` keeps returning a single address when the keypool is exhausted. In my opinion this is strange behaviour. - Change CReserveKey to fail when running out of keys in the keypool. - Make `getrawchangeaddress` return RPC_WALLET_KEYPOOL_RAN_OUT when unable to create an address. - Add a Python RPC test for checking the keypool behaviour in combination with encrypted wallets.
* Merge pull request #4045Wladimir J. van der Laan2014-07-071-36/+91
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-18/+18
| |
| * fixed bug in ListReceived()JaSK2014-07-021-1/+1
| |
| * removed default argument values for ismine filterJaSK2014-07-021-9/+9
| |
| * added includedWatchonly argument to listreceivedbyaddress/...accountJaSK2014-07-021-7/+31
| |
| * added includeWatchonly argument to 'gettransaction' because it affects ↵JaSK2014-07-021-2/+8
| | | | | | | | balance calculation
| * fixed tiny glitch and improved readability like laanwj suggestedJaSK2014-07-021-41/+29
| |
| * Added argument to listtransactions and listsinceblock to include watchonly ↵JaSK2014-07-021-22/+40
| | | | | | | | addresses
| * Showing 'involvesWatchonly' property for transactions returned by ↵JaSK2014-07-021-0/+5
| | | | | | | | | | | | 'listtransactions' and 'listsinceblock'. It is only appended when the transaction involves a watchonly address.
| * Added argument to listaccounts to include watchonly addressesJaSK2014-07-021-5/+12
| |
| * Added argument to getbalance to include watchonly addresses and fixed errors ↵JaSK2014-07-021-8/+15
| | | | | | | | in balance calculation.
* | Merge pull request #4446Wladimir J. van der Laan2014-07-071-1/+1
|\ \ | | | | | | | | | 209377a Use GetBlockTime() more (jtimon)
| * | Use GetBlockTime() morejtimon2014-07-071-1/+1
| |/
* / Rename SendMoneyToDestination to SendMoney.Daniel Kraft2014-07-071-2/+2
|/ | | | | | | Get rid of SendMoney and replace it by the functionality of SendMoneyToDestination. This cleans up the code, since only SendMoneyToDestination was actually used (SendMoney internally from this routine).
* Add -respendnotify option and new RPC dataTom Harding2014-06-271-0/+22
| | | | | | | | | | | | -respendnotify=<cmd> Execute command when a network tx respends wallet tx input (%s=respend TxID, %t=wallet TxID) Add respendsobserved array to gettransaction, listtransactions, and listsinceblock RPCs. This omits the malleated clones that are included in the walletconflicts array. Add RPC help for respendsobserved and walletconflicts (help was missing for the latter).
* 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.
* Type-safe CFeeRate classGavin Andresen2014-06-061-1/+1
| | | | | | | | 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.
* No references to centralized databases in help text.Pieter Wuille2014-05-291-7/+6
|
* removed a few unnecessary castsKamil Domanski2014-05-131-4/+4
|
* switch from boost int types to <stdint.h>Kamil Domanski2014-05-131-6/+6
|
* fixes #4163Matthew Bogosian2014-05-091-1/+1
|
* Check redeemScript size does not exceed 520 byte limitPeter Todd2014-05-081-2/+2
| | | | | | | | | | | | 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.
* [Qt] fix style, formating, comment and indentation problemsPhilip Kaufmann2014-03-271-3/+0
| | | | - introduced by #3920
* Merge pull request #3717 from djpnewton/wallet-txcountJeff Garzik2014-03-101-0/+32
|\ | | | | add getwalletinfo RPC call with wallet transaction count
| * move wallet info stuff to "getwalletinfo" rpc (left original walletDaniel Newton2014-02-271-0/+32
| | | | | | | | | | | | stuff in getinfo call for backwards compatibility) add wallet transaction count to getwalletinfo rpc call
* | Remove CWalletTx::vfSpentGavin Andresen2014-02-261-3/+4
| | | | | | | | | | | | Use the spent outpoint multimap to figure out which wallet transaction outputs are unspent, instead of a vfSpent array that is saved to disk.
* | Remove "conflicted" as transaction category.Wladimir J. van der Laan2014-02-211-8/+2
|/ | | | | | | | | | We were losing information about sent/received by overriding the category in case of a conflicted transaction. Hence, remove the "conflicted" category. Conflicted status of a transaction can still be determined by looking for confirmations<0.
* Merge pull request #3679 from laanwj/2014_02_walletpassphrase_behaviorGavin Andresen2014-02-171-0/+3
|\ | | | | Document new `walletpassphrase` behavior in 0.9
| * Document new `walletpassphrase` behavior in 0.9Wladimir J. van der Laan2014-02-161-0/+3
| | | | | | | | | | Also add a note to the release notes. Fixes #3672.
* | Serialize only CTransaction data in gettransaction RPC hexWladimir J. van der Laan2014-02-171-1/+1
| | | | | | | | | | Don't include trailing implementation-specific wallet metadata. Fixes 3a1c20b.
* | Merge pull request #3646Wladimir J. van der Laan2014-02-161-1/+1
|\ \ | |/ |/| | | 5770254 Copyright header updates s/2013/2014 on files whose last git commit was done 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. (gubatron)
| * 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.
* | Track and report wallet transaction clonesGavin Andresen2014-02-141-2/+9
| | | | | | | | | | | | | | | | | | | | Adds a "walletconflicts" array to transaction info; if a wallet transaction is mutated, the alternate transaction id or ids are reported there (usually the array will be empty). Metadata from the original transaction is copied to the mutant, so the transaction time and "from" account of the mutant are reported correctly.
* | Handle "conflicted" transactions properlyGavin Andresen2014-02-141-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend CMerkleTx::GetDepthInMainChain with the concept of a "conflicted" transaction-- a transaction generated by the wallet that is not in the main chain or in the mempool, and, therefore, will likely never be confirmed. GetDepthInMainChain() now returns -1 for conflicted transactions (0 for unconfirmed-but-in-the-mempool, and >1 for confirmed). This makes getbalance, getbalance '*', and listunspent all agree when there are mutated transactions in the wallet. Before: listunspent: one 49BTC output getbalance: 96 BTC (change counted twice) getbalance '*': 46 BTC (spends counted twice) After: all agree, 49 BTC available to spend.
* | Merge pull request #3662Wladimir J. van der Laan2014-02-131-1/+1
|\ \ | | | | | | | | | 0542619 Rename IsConfirmed to IsTrusted to better match the intended behavior. (Gregory Maxwell)
| * | Rename IsConfirmed to IsTrusted to better match the intended behavior.Gregory Maxwell2014-02-121-1/+1
| | | | | | | | | | | | This doesn't change the functionality at all.
* | | Add raw transaction hex to `gettransaction` wallet RPCWladimir J. van der Laan2014-02-131-1/+7
|/ / | | | | | | | | | | This allows getting raw transaction data from the wallet even if the transaction is no longer in the blockchain / mempool (for example if it got orphaned due to malleability abuse).
* / small changes to rpc command help message stringsPhilip Kaufmann2014-01-301-2/+2
|/
* Re-add BTC/KB in help message for `settxfee`Wladimir J. van der Laan2014-01-291-2/+2
| | | | Commit a22eed6a got reverted in a RPC documentation update, redo it.
* Mention `*` value for account in documentation for `getbalance` RPCWladimir J. van der Laan2014-01-291-1/+3
|
* qt: allow `walletpassphrase` in debug console without -serverWladimir J. van der Laan2014-01-171-2/+0
| | | | | | | | | | | | | | Currently it is only possible to use `walletpassphrase` to unlock the wallet when bitcoin is started in server mode. Almost everything that manipulates the wallet in the RPC console needs the wallet to be unlocked and is thus unusable without -server. This is pretty unintuitive to me, and I'm sure it's even more confusing to users. Solve this with a very minimal change: by making the GUI start a dummy RPC thread just to handle timeouts.
* Merge pull request #3369Wladimir J. van der Laan2013-12-201-0/+9
|\ | | | | | | 6027b46 Add rpc command 'getunconfirmedbalance' to obtain total unconfirmed balance (Michael Bauer)
| * Add rpc command 'getunconfirmedbalance' to obtain total unconfirmed balanceMichael Bauer2013-12-081-0/+9
| | | | | | | | | | Conflicts: src/rpcserver.cpp
* | Move `verifymessage` from rpcwallet to rpcmiscWladimir J. van der Laan2013-12-131-53/+0
| | | | | | | | Enables it in --disable-wallet compiles.