aboutsummaryrefslogtreecommitdiff
path: root/src/primitives
Commit message (Collapse)AuthorAgeFilesLines
* Merge #9602: Remove coin age priority and free transactions - implementationWladimir J. van der Laan2017-03-072-32/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b421e6d Update example bitcoin.conf (Alex Morcos) 7d4e950 Allow setting minrelaytxfee to 0 (Alex Morcos) 359e8a0 [cleanup] Remove coin age priority completely. (Alex Morcos) f9b9371 [rpc] Remove priorityDelta from prioritisetransaction (Alex Morcos) 49be7e1 [rpc] Remove priority information from mempool RPC calls (Alex Morcos) 0315888 [test] Remove priority from tests (Alex Morcos) f838005 No longer allow "free" transactions (Alex Morcos) ad727f4 [rpc] sendrawtransaction no longer bypasses minRelayTxFee (Alex Morcos) fe282ac [cleanup] Remove estimatePriority and estimateSmartPriority (Alex Morcos) 400b151 [debug] Change -printpriority option (Alex Morcos) 272b25a [mining] Remove -blockprioritysize. (Alex Morcos) 12839cd [rpc] Remove estimatepriority and estimatesmartpriority. (Alex Morcos) ddf58c7 wallet: Remove sendfree (MarcoFalke) Tree-SHA512: a9a4499405923ce794ef18f9e334dbbd59dfc73a3dc2df6f85cc9c62af6f353ec2eed9c2d5e58e904f918d0d7ab738f403dd4939d9bc2276136864fe63710782
| * [cleanup] Remove coin age priority completely.Alex Morcos2017-03-032-32/+0
| | | | | | | | Remove GetPriority and ComputePriority. Remove internal machinery for tracking priority in CTxMemPoolEntry.
* | Optimize GetWitnessHash() for non-segwit transactionsSuhas Daftuar2017-03-031-0/+3
|/
* Merge #9283: A few more CTransactionRef optimizationsWladimir J. van der Laan2017-01-041-2/+0
|\ | | | | | | | | | | | | 91335ba Remove unused MakeTransactionRef overloads (Pieter Wuille) 6713f0f Make FillBlock consume txn_available to avoid shared_ptr copies (Pieter Wuille) 62607d7 Convert COrphanTx to keep a CTransactionRef (Pieter Wuille) c44e4c4 Make AcceptToMemoryPool take CTransactionRef (Pieter Wuille)
| * Remove unused MakeTransactionRef overloadsPieter Wuille2016-12-211-2/+0
| |
* | Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-314-4/+4
|/ | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Merge #8589: Inline CTxInWitness inside CTxInWladimir J. van der Laan2016-12-212-73/+36
|\ | | | | | | f6fb7ac Move CTxInWitness inside CTxIn (Pieter Wuille)
| * Move CTxInWitness inside CTxInPieter Wuille2016-12-042-73/+36
| |
* | Bump default transaction version to 2BtcDrak2016-12-081-1/+1
|/
* Make CTransaction actually immutablePieter Wuille2016-12-022-90/+87
|
* Introduce convenience type CTransactionRefPieter Wuille2016-11-192-1/+7
|
* Make CBlock::vtx a vector of shared_ptr<CTransaction>Pieter Wuille2016-11-192-2/+2
|
* Add deserializing constructors to CTransaction and CMutableTransactionPieter Wuille2016-11-192-0/+13
|
* Get rid of nType and nVersionPieter Wuille2016-11-072-15/+16
| | | | | | | | | | | Remove the nType and nVersion as parameters to all serialization methods and functions. There is only one place where it's read and has an impact (in CAddress), and even there it does not impact any of the recursively invoked serializers. Instead, the few places that need nType or nVersion are changed to read it directly from the stream object, through GetType() and GetVersion() methods which are added to all stream classes.
* Make GetSerializeSize a wrapper on top of CSizeComputerPieter Wuille2016-11-071-1/+1
| | | | | | | | | | | Given that in default GetSerializeSize implementations created by ADD_SERIALIZE_METHODS we're already using CSizeComputer(), get rid of the specialized GetSerializeSize methods everywhere, and just use CSizeComputer. This removes a lot of code which isn't actually used anywhere. For CCompactSize and CVarInt this actually removes a more efficient size computing algorithm, which is brought back in a later commit.
* Remove unused CTxOut::GetHash()Matt Corallo2016-11-042-7/+0
|
* Adding method GetTotalSize() to CTransactionHampus Sjöberg2016-09-062-0/+12
| | | | | GetTotalSize() returns the total transaction size (including witness) in bytes.
* Use __func__ to get function name for output printingMarcoFalke2016-08-191-1/+1
|
* Merge #8332: semi trivial: clarify witness branches in transaction.h ↵Wladimir J. van der Laan2016-07-281-3/+5
|\ | | | | | | | | | | serialization e37b16a transaction: clarify witness branches (Daniel Cousens)
| * transaction: clarify witness branchesDaniel Cousens2016-07-141-3/+5
| |
* | Rename "block cost" to "block weight"Suhas Daftuar2016-07-184-9/+9
| |
* | Rename CTxinWitness -> CTxInWitnessBob McElrath2016-07-061-3/+3
|/
* BIP141: Other consensus critical limits, and BIP145Pieter Wuille2016-06-224-5/+42
| | | | Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
* BIP141: Commitment structure and deploymentPieter Wuille2016-06-221-1/+2
| | | | Includes a fix by Suhas Daftuar and LongShao007
* BIP144: Serialization, hashes, relay (sender side)Pieter Wuille2016-06-223-17/+152
| | | | | | Contains refactorings by Eric Lombrozo. Contains fixup by Nicolas Dorier. Contains cleanup of CInv::GetCommand by Alex Morcos
* Merge #7763: Put hex-encoded version in UpdateTipWladimir J. van der Laan2016-03-311-1/+1
|\ | | | | | | eff736e Reformat version in UpdateTip and other messages (Pieter Wuille)
| * Reformat version in UpdateTip and other messagesPieter Wuille2016-03-311-1/+1
| | | | | | | | Also remove the hardly-readable nBits from UpdateTip's log message.
* | Merge #7648: BIP9 versionbits softfork for BIP68, BIP112 and BIP113Wladimir J. van der Laan2016-03-301-0/+7
|\ \ | |/ |/| | | | | | | | | | | | | 71527a0 Test of BIP9 fork activation of mtp, csv, sequence_lock (NicolasDorier) 19d73d5 Add RPC test for BIP 68/112/113 soft fork. (Alex Morcos) 12c89c9 Policy: allow transaction version 2 relay policy. (BtcDrak) 02c2435 Soft fork logic for BIP68 (BtcDrak) 478fba6 Soft fork logic for BIP113 (BtcDrak) 65751a3 Add CHECKSEQUENCEVERIFY softfork through BIP9 (Pieter Wuille)
| * Policy: allow transaction version 2 relay policy.BtcDrak2016-03-181-0/+7
| | | | | | | | | | This commit introduces a way to gracefully bump the default transaction version in a two step process.
* | Merge #7712: Improve COutPoint less operatorWladimir J. van der Laan2016-03-211-1/+2
|\ \ | |/ |/| | | 0f17692 Improve COutPoint less operator (João Barbosa)
| * Improve COutPoint less operatorJoão Barbosa2016-03-181-1/+2
| |
* | BIP9 ImplementationPieter Wuille2016-03-151-2/+1
|/ | | | | Inspired by former implementations by Eric Lombrozo and Rusty Russell, and based on code by Jorge Timon.
* Merge #7184: Implement SequenceLocks functions for BIP 68Wladimir J. van der Laan2016-02-122-9/+31
|\ | | | | | | | | | | | | b043c4b fix sdaftuar's nits again (Alex Morcos) a51c79b Bug fix to RPC test (Alex Morcos) da6ad5f Add RPC test exercising BIP68 (mempool only) (Suhas Daftuar) c6c2f0f Implement SequenceLocks functions (Alex Morcos)
| * Implement SequenceLocks functionsAlex Morcos2016-02-102-9/+31
| | | | | | | | | | | | | | SequenceLocks functions are used to evaluate sequence lock times or heights per BIP 68. The majority of this code is copied from maaku in #6312 Further credit: btcdrak, sipa, NicolasDorier
* | Bump copyright headers to 2015MarcoFalke2015-12-134-4/+4
|/
* Merge pull request #6914Wladimir J. van der Laan2015-12-011-2/+2
|\ | | | | | | 114b581 Prevector type (Pieter Wuille)
| * Prevector typePieter Wuille2015-11-131-2/+2
| |
* | Switch blocks to a constant-space Merkle root/branch algorithm.Pieter Wuille2015-11-272-69/+0
|/ | | | | | | | | | | This switches the Merkle tree logic for blocks to one that runs in constant (small) space. The old code is moved to tests, and a new test is added that for various combinations of block sizes, transaction positions to compute a branch for, and mutations: * Verifies that the old code and new code agree for the Merkle root. * Verifies that the old code and new code agree for the Merkle branch. * Verifies that the computed Merkle branch is valid. * Verifies that mutations don't change the Merkle root. * Verifies that mutations are correctly detected.
* transaction_tests: Be more strict checking dustMarcoFalke2015-11-091-2/+2
| | | | | | * Don't allow off-by-one or more * Make clear dust is coupled with minRelayTxFee * Check rounding for odd values
* Add CHECKLOCKTIMEVERIFY (BIP65) soft-fork logicPeter Todd2015-10-081-1/+1
| | | | | Based on the earlier BIP66 soft-fork logic implemented by Pieter Wuille's 5a47811da5158df763aa2fca09ce646ee0c51e7b
* Merge pull request #5264Wladimir J. van der Laan2015-09-251-2/+2
|\ | | | | | | af3208b Resolve issue 3166. These changes decode valid SIGHASH types on signatures in assembly (asm) representations of scriptSig scripts. This squashed commit incorporates substantial helpful feedback from jtimon, laanwj, and sipa. (mruddy)
| * Resolve issue 3166.mruddy2015-07-301-2/+2
| | | | | | | | | | These changes decode valid SIGHASH types on signatures in assembly (asm) representations of scriptSig scripts. This squashed commit incorporates substantial helpful feedback from jtimon, laanwj, and sipa.
* | Avoid duplicate CheckBlock checksPieter Wuille2015-09-221-0/+4
| |
* | Do not store Merkle branches in the wallet.Pieter Wuille2015-09-222-45/+4
|/ | | | | | | | | | Assume that when a wallet transaction has a valid block hash and transaction position in it, the transaction is actually there. We're already trusting wallet data in a much more fundamental way anyway. To prevent backward compatibility issues, a new record is used for storing the block locator in the wallet. Old wallets will see a wallet file synchronized up to the genesis block, and rescan automatically.
* Merge pull request #6444Wladimir J. van der Laan2015-07-211-2/+5
|\ | | | | | | 0aad1f1 Exempt unspendable transaction outputs from dust checks (zathras-crypto)
| * Exempt unspendable transaction outputs from dust checkszathras-crypto2015-07-181-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since unspendable outputs can't be spent, there is no threshold at which it would be uneconomic to spend them. This primarily targets transaction outputs with `OP_RETURN`. --- Initially based on: commit 9cf0ae26350033d43d5dd3c95054c0d1b1641eda Author: zathras-crypto <[email protected]> Date: Wed Mar 25 02:04:02 2015 -0700 Changes: - cherry-picked on top of bitcoin:master - added RPC test for fundrawtransaction
* | Separate core memory usage computation in core_memusage.hPieter Wuille2015-07-202-14/+0
|/
* Implement accurate memory accounting for mempoolPieter Wuille2015-07-102-0/+14
|
* Move recently introduced CTransAction::IsEquivalentTo to CWalletTxWladimir J. van der Laan2015-07-022-12/+0
| | | | | | CTransAction::IsEquivalentTo was introduced in #5881. This functionality is only useful to the wallet, and should never have been added to the primitive transaction type.
* Merge pull request #5881Wladimir J. van der Laan2015-07-022-0/+12
|\ | | | | | | | | | | 5d34e16 Add txn_clone.py test (Tom Harding) defd2d5 Better txn_doublespend.py test (Tom Harding) b2b3619 Implement CTransaction::IsEquivalentTo(...) (Tom Harding)