aboutsummaryrefslogtreecommitdiff
path: root/src/rpcrawtransaction.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | minor txindex documentation improvementCozz Lovan2014-10-061-1/+4
| | |
* | | Replace SCRIPT_VERIFY_NOCACHE by flag directly to checkerPieter Wuille2014-10-021-1/+1
|/ /
* / Use a typedef for monetary valuesMark Friedenbach2014-09-261-2/+2
|/
* Merge pull request #4555Wladimir J. van der Laan2014-09-171-1/+1
|\ | | | | | | | | | | | | 6dcfda2 Don't pass nHashType to EvalScript nor CheckSig (jtimon) 2b23a87 Don't pass nHashType to VerifyScript (jtimon) ce3649fb Remove CScriptCheck::nHashType (was always 0) (jtimon) 358562b Remove unused function main:VerifySignature (jtimon)
| * Don't pass nHashType to VerifyScriptjtimon2014-09-121-1/+1
| |
* | Move CTxDestination from script/script to script/standardPieter Wuille2014-09-161-2/+1
| |
* | Merge pull request #4911Pieter Wuille2014-09-161-2/+2
|\ \ | | | | | | | | | 611116d header include cleanup (Philip Kaufmann)
| * | header include cleanupPhilip Kaufmann2014-09-141-2/+2
| |/ | | | | | | - ensures alphabetical ordering for includes etc. in source file headers
* / Fixing compiler warning C4101ENikS2014-09-151-1/+1
|/ | | | Github-Pull: #4856
* Merge pull request #4822Pieter Wuille2014-09-101-6/+6
|\ | | | | | | 629d75f Combine CCoinsViewCache's HaveCoins and const GetCoins into AccessCoins. (Pieter Wuille)
| * Combine CCoinsViewCache's HaveCoins and const GetCoins into AccessCoins.Pieter Wuille2014-09-031-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | The efficient version of CCoinsViewCache::GetCoins only works for known-to-exist cache entries, requiring a separate HaveCoins call beforehand. This is inefficient as both perform a hashtable lookup. Replace the non-mutable GetCoins with AccessCoins, which returns a potentially-NULL pointer. This also decreases the overloading of GetCoins. Also replace some copying (inefficient) GetCoins calls with equivalent AccessCoins, decreasing the copying.
* | Separate script/signjtimon2014-09-081-0/+1
| |
* | Separate script/standardjtimon2014-09-081-0/+2
| |
* | Introduce BlockMap type for mapBlockIndexPieter Wuille2014-09-041-1/+1
|/
* Clean-up SyncWithWallets/SyncTransactionCozz Lovan2014-08-171-3/+1
|
* bitcoin-cli, rpcrawtransaction: harmonize "{" stylingJeff Garzik2014-07-291-54/+27
|
* Consolidate CTransaction hex encode/decode into core_io.h, core_{read,write}.cppJeff Garzik2014-07-291-27/+12
|
* Clarify that redeemScript is often optionalZak Wilcox2014-07-121-1/+1
|
* Merge pull request #4045Wladimir J. van der Laan2014-07-071-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * Add support for watch-only addressesPieter Wuille2014-07-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Use GetBlockTime() morejtimon2014-07-071-2/+2
|/
* Code simplifications after CTransaction::GetHash() cachingPieter Wuille2014-06-221-3/+3
|
* Add CMutableTransaction and make CTransaction immutable.Pieter Wuille2014-06-211-5/+5
| | | | | In addition, introduce a cached hash inside CTransaction, to prevent recalculating it over and over again.
* switch from boost int types to <stdint.h>Kamil Domanski2014-05-131-6/+6
|
* Merge pull request #3843Wladimir J. van der Laan2014-05-091-1/+1
|\ | | | | | | | | | | | | | | | | 787ee0c Check redeemScript size does not exceed 520 byte limit (Peter Todd) 4d79098 Increase IsStandard() scriptSig length (Peter Todd) f80cffa Do not trigger a DoS ban if SCRIPT_VERIFY_NULLDUMMY fails (Peter Todd) 6380180 Add rejection of non-null CHECKMULTISIG dummy values (Peter Todd) 29c1749 Let tx (in)valid tests use any SCRIPT_VERIFY flag (Peter Todd) 68f7d1d Create (MANDATORY|STANDARD)_SCRIPT_VERIFY_FLAGS constants (Peter Todd)
| * Create (MANDATORY|STANDARD)_SCRIPT_VERIFY_FLAGS constantsPeter Todd2014-05-051-1/+1
| |
* | Typo Fix In decoderawtransaction Help: s/txid/hex/David A. Harding2014-05-081-7/+2
|/ | | | | | | | | | | | Help text appears to have been copy/pasted from getrawtransaction, so it erroneously asked for a txid where rawtransaction hex should appear. Remove lines which were copy/pasted from getrawtransaction but which aren't displayed by decoderawtransaction. Rebased-By: Wladimir J. van der Laan <[email protected]> Rebased-From: 5cc0133 80c521e Github-Pull: #4106
* Fix a typo in RPC signrawtransaction helpHector Jusforgues2014-04-081-1/+1
|
* 'sendrawtransaction' improvementsWladimir J. van der Laan2014-03-271-16/+14
| | | | | - Make it report the reject code and reason - Make it possible to re-send transactions that are already in the mempool
* Make the signrawtransaction docs explicit that the arguments can be 'null'.Gregory Maxwell2014-02-221-2/+2
|
* 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.
* small headers ordering cleanupPhilip Kaufmann2014-01-111-4/+4
| | | | | | - keep headers in alphabetical order - fix Makefile.am (2 files in 1 line - leftover) - remove some spaces etc.
* Merge pull request #3332Wladimir J. van der Laan2013-12-081-0/+15
|\ | | | | | | | | | | | | | | | | | | | | 5094f8d Split off rpc_wallet_tests (Wladimir J. van der Laan) 829c920 Move CCryptoKeyStore to crypter.cpp (Wladimir J. van der Laan) ae6ea5a Update build-unix.md to mention --disable-wallet (Wladimir J. van der Laan) 4f9e993 Add --disable-wallet option to build system (Wladimir J. van der Laan) d004d72 Move CAddrDB frrom db to net (Wladimir J. van der Laan) 48ba56c Delimit code with #ifdef ENABLE_WALLET (Wladimir J. van der Laan) 991685d Move getinfo to rpcnet.cpp (Wladimir J. van der Laan) bbb0936 Move HelpExample* from rpcwallet to rpcserver (Wladimir J. van der Laan)
| * Delimit code with #ifdef ENABLE_WALLETWladimir J. van der Laan2013-12-041-0/+15
| | | | | | | | | | Delimit all code that uses the wallet functions in implementation files that conditionally use the wallet.
* | Restore hex to getrawtransaction vout scriptPubkey.Gregory Maxwell2013-12-061-1/+1
|/ | | | | | | | | Commit be066fad accidentally removed the hex field. This gets in the way of doing offline signing. (credit belongs to sipa for actually looking for the cause instead of being lazy like me and just shrugging and writing the scriptpubkey from the asm.)
* Split up bitcoinrpc (code movement only)Wladimir J. van der Laan2013-11-271-3/+1
| | | | | | | | | | | | | | Split bitcoinrpc up into - rpcserver: bitcoind RPC server - rpcclient: bitcoin-cli RPC client - rpcprotocol: shared common HTTP/JSON-RPC protocol code One step towards making bitcoin-cli independent from the rest of the code, and thus a smaller executable that doesn't have to be linked against leveldb. This commit only does code movement, there are no functional changes.
* Issue #1865 - Clean up RPC help messagessje2013-11-131-30/+246
| | | | | | | | | | | | | | | | | | | Based on the proposal, update the help message of rpc methods - strings arguments are in double quotes rather than square brackets - numeric arguments have no quotes (and no default value) - optional parameters are surrounded by round brackets - json arguments are strings but don't use double quotes Added 3 sections for the details - Arguments: lists each argument, it's type, required or not, a default, and a description - Result: The method result, with json format if applicable, type, and a description - Examples: examples calls using bitcoin-cli and curl for json rpc call Problems - maybe this is too verbose - lines might be too long - description are not good or complete - examples may be too much
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-4/+10
| | | | | | | | | Use misc methods of avoiding unnecesary header includes. Replace int typedefs with int##_t from stdint.h. Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h. Normalize QT_VERSION ifs where possible. Resolve some indirect dependencies as direct ones. Remove extern declarations from .cpp files.
* Refactor: CTxMempool class to its own txmempool.{cpp,h}Gavin Andresen2013-11-041-1/+1
|
* Merge pull request #3128Gavin Andresen2013-11-011-1/+1
|\ | | | | | | | | | | | | 0056095 Show short scriptPubKeys correctly (Peter Todd) 22de68d Relay OP_RETURN TxOut as standard transaction type (Peter Todd) Signed-off-by: Gavin Andresen <[email protected]>
| * Relay OP_RETURN TxOut as standard transaction typePeter Todd2013-10-241-1/+1
| | | | | | | | | | | | Also fix decoderawtransaction to not show reqSigs or addresses for nulldata txouts. (Previous version also left reqSigs uninitialized mistakenly)
* | Use boost signals for callbacks from main to walletPieter Wuille2013-10-261-1/+1
|/
* Merge pull request #3119Pieter Wuille2013-10-201-1/+1
|\ | | | | | | db0e8cc Bump Year Number to 2013 (super3)
| * Bump Year Number to 2013super32013-10-201-1/+1
| |
* | Refactor/encapsulate chain globals into a CChain classPieter Wuille2013-10-111-2/+2
|/
* Support absence of wallet (pwalletMain==NULL) in several locations,Jeff Garzik2013-10-011-1/+2
| | | | notably RPC.
* Merge pull request #2949 from gmaxwell/fewer_fee_footgunsGavin Andresen2013-09-221-3/+7
|\ | | | | [raw] reject insanely high fees by default in sendrawtransaction
| * [raw] reject insanely high fees by default in sendrawtransactionGregory Maxwell2013-08-281-3/+7
| | | | | | | | | | | | | | | | | | | | | | There have been several incidents where mainnet experimentation with raw transactions resulted in insane fees. This is hard to prevent in the raw transaction api because the inputs may not be known. Since sending doesn't work if the inputs aren't known, we can catch it there. This rejects fees > than 10000 * nMinRelayTxFee or 1 BTC with the defaults and can be overridden with a bool at the rpc.
* | Add RPC call decodescriptPeter Todd2013-09-121-3/+27
| |
* | Move Parse{Hash|Hex} to be usable by all RPC codePeter Todd2013-09-121-33/+0
|/