aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-tx.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #5513Wladimir J. van der Laan2015-01-061-2/+1
|\ | | | | | | | | | | 856e862 namespace: drop most boost namespaces and a few header cleanups (Cory Fields) 9b1ab86 namespace: drop boost::assign altogether here (Cory Fields) a324199 namespace: remove boost namespace pollution (Cory Fields)
| * namespace: drop most boost namespaces and a few header cleanupsCory Fields2015-01-021-2/+1
| | | | | | | | A few boost::asio were left around because they're very wordy otherwise.
* | String conversions uint256 -> uint256SWladimir J. van der Laan2015-01-051-1/+1
| | | | | | | | | | | | | | If uint256() constructor takes a string, uint256(0) will become dangerous when uint256 does not take integers anymore (it will go through std::string(const char*) making a NULL string, and the explicit keyword is no help).
* | Replace direct use of 0 with SetNull and IsNullWladimir J. van der Laan2015-01-051-2/+2
|/ | | | | | Replace x=0 with .SetNull(), x==0 with IsNull(), x!=0 with !IsNull(). Replace uses of uint256(0) with uint256().
* bitcoin-tx: Refer to the JSON fields rather than the whole objectEric R. Schulz2014-12-231-2/+2
|
* bitcoin-tx: Fix JSON validation of prevtxsEric R. Schulz2014-12-221-1/+1
|
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Merge pull request #5470Wladimir J. van der Laan2014-12-191-1/+1
|\ | | | | | | 78253fc Remove references to X11 licence (Michael Ford)
| * Remove references to X11 licenceMichael Ford2014-12-161-1/+1
| |
* | make all catch() arguments constPhilip Kaufmann2014-12-171-4/+4
|/ | | | | | | - I saw this on http://en.cppreference.com/w/cpp/language/try_catch and thought it would be a good idea - also unify used format to better be able to search for exception uses in our codebase
* Merge pull request #5181Wladimir J. van der Laan2014-12-051-1/+3
|\ | | | | | | afd4b94 Move CMerkleBlock and CPartialMerkleTree to their own file (Matt Corallo)
| * Move CMerkleBlock and CPartialMerkleTree to their own fileMatt Corallo2014-12-051-1/+3
| |
* | Merge pull request #5207Wladimir J. van der Laan2014-12-051-0/+10
|\ \ | |/ |/| | | 8487790 bitcoin-tx: Add the "-txid" option. Also add the hex-encoded transaction to the JSON output as the "hex" property. (mruddy)
| * bitcoin-tx: Add the "-txid" option. Also add the hex-encoded transaction to ↵mruddy2014-11-041-0/+10
| | | | | | | | the JSON output as the "hex" property.
* | MOVEONLY: core/ -> primitives/Luke Dashjr2014-12-031-1/+1
|/
* Separate protocol versioning from clientversionCory Fields2014-10-291-0/+1
|
* MOVEONLY: Separate CTransaction and dependencies from corejtimon2014-10-271-1/+1
|
* Merge pull request #4834Pieter Wuille2014-10-081-11/+9
|\ | | | | | | | | | | | | | | 7c70438 Get rid of the dummy CCoinsViewCache constructor arg (Pieter Wuille) ed27e53 Add coins_tests with a large randomized CCoinViewCache test. (Pieter Wuille) 058b08c Do not keep fully spent but unwritten CCoins entries cached. (Pieter Wuille) c9d1a81 Get rid of CCoinsView's SetCoins and SetBestBlock. (Pieter Wuille) f28aec0 Use ModifyCoins instead of mutable GetCoins. (Pieter Wuille)
| * Get rid of the dummy CCoinsViewCache constructor argPieter Wuille2014-09-241-1/+1
| |
| * Use ModifyCoins instead of mutable GetCoins.Pieter Wuille2014-09-231-10/+8
| | | | | | | | | | | | | | | | | | Replace the mutable non-copying GetCoins method with a ModifyCoins, which returns an encapsulated iterator, so we can keep track of concurrent modifications (as iterators can be invalidated by those) and run cleanup code after a modification is finished. This also removes the overloading of the 'GetCoins' name.
* | Make signature cache optionalPieter 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-3/+2
| |
* | Merge pull request #4911Pieter Wuille2014-09-161-6/+7
|\ \ | | | | | | | | | 611116d header include cleanup (Philip Kaufmann)
| * | header include cleanupPhilip Kaufmann2014-09-141-6/+7
| |/ | | | | | | - ensures alphabetical ordering for includes etc. in source file headers
* / Bugfix: bitcoin-tx: scriptPubKey may be null, so accept outscript=<n>:Luke Dashjr2014-09-141-2/+1
|/
* Merge pull request #4822Pieter Wuille2014-09-101-3/+3
|\ | | | | | | 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-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
| |
* | Separate script/standardjtimon2014-09-081-0/+2
|/
* add missing header end commentsPhilip Kaufmann2014-08-281-1/+0
| | | | | | - ensures a consistent usage in header files - also add a blank line after the copyright header where missing - also remove orphan new-lines at the end of some files
* Split up util.cpp/hWladimir J. van der Laan2014-08-261-0/+1
| | | | | | | | | | | | | | | | Split up util.cpp/h into: - string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach) - money utilities (parsesmoney, formatmoney) - time utilities (gettime*, sleep, format date): - and the rest (logging, argument parsing, config file parsing) The latter is basically the environment and OS handling, and is stripped of all utility functions, so we may want to rename it to something else than util.cpp/h for clarity (Matt suggested osinterface). Breaks dependency of sha256.cpp on all the things pulled in by util.
* bitcoin-tx: Accept input via stdin. Add input handling to tests.Jeff Garzik2014-08-191-2/+26
|
* bitcoin-tx: fix build warningsCory Fields2014-08-131-6/+6
| | | | | Cleans up a bunch of: warning: missing braces around initializer for ‘const<anonymous struct>’
* Add "bitcoin-tx" command line utility and supporting modules.Jeff Garzik2014-07-291-0/+597
This is a simple utility that provides command line manipulation of a hex-encoded TX. The utility takes a hex string on the command line as input, performs zero or more mutations, and outputs a hex string to standard output. This utility is also an intentional exercise of the "bitcoin library" concept. It is designed to require minimal libraries, and works entirely without need for any RPC or P2P communication. See "bitcoin-tx --help" for command and options summary.