aboutsummaryrefslogtreecommitdiff
path: root/src/primitives/transaction.h
Commit message (Collapse)AuthorAgeFilesLines
* s/DOGE/DIS/gTomo Ueda2021-09-021-1/+1
|
* really s/Doge/Dis/g this timeTomo Ueda2021-09-021-2/+2
|
* Use CAmount for amountsRoss Nicoll2021-08-081-1/+2
| | | | | | | | | | Use CAmount rather than unsigned int for amounts for consistency with other fee rate amounts. This does change the type from unsigned int to unsigned int64, and while it is unlikely anyone would need a dust limit higher than unsigned int, again this ensures the theoretical maximum is in line with other rates.
* [fees] introduce configurable hard dust limitPatrick Lodder2021-08-051-1/+3
| | | | Co-authored-by: Ross Nicoll <[email protected]>
* Initial back end framework to separate wallet and relay fees + dust.Michi Lumin2021-07-301-3/+3
|
* Fix dust threshold at 1 DOGERoss Nicoll2019-11-031-1/+5
|
* Correct dust and changeRoss Nicoll2019-11-031-1/+2
| | | | | Correct dust threshold, which is never less than 1 DOGE. Correct minimum change, which is 1 DOGE.
* Create v1 transactions for compatibility with 1.10 (#1485)Ross Nicoll2018-09-191-1/+2
| | | | Create v1 transactions for compatibility with 1.10. See https://github.com/bitcoin/bips/blob/master/bip-0068.mediawiki for context. This should NOT be merged into 1.16.
* 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-311-1/+1
|/ | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Merge #8589: Inline CTxInWitness inside CTxInWladimir J. van der Laan2016-12-211-68/+31
|\ | | | | | | f6fb7ac Move CTxInWitness inside CTxIn (Pieter Wuille)
| * Move CTxInWitness inside CTxInPieter Wuille2016-12-041-68/+31
| |
* | Bump default transaction version to 2BtcDrak2016-12-081-1/+1
|/
* Make CTransaction actually immutablePieter Wuille2016-12-021-69/+81
|
* Introduce convenience type CTransactionRefPieter Wuille2016-11-191-0/+6
|
* Add deserializing constructors to CTransaction and CMutableTransactionPieter Wuille2016-11-191-0/+9
|
* Get rid of nType and nVersionPieter Wuille2016-11-071-11/+11
| | | | | | | | | | | 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-041-2/+0
|
* Adding method GetTotalSize() to CTransactionHampus Sjöberg2016-09-061-0/+7
| | | | | GetTotalSize() returns the total transaction size (including witness) in bytes.
* 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-181-2/+2
| |
* | Rename CTxinWitness -> CTxInWitnessBob McElrath2016-07-061-3/+3
|/
* BIP141: Other consensus critical limits, and BIP145Pieter Wuille2016-06-221-4/+24
| | | | 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-221-11/+140
| | | | | | Contains refactorings by Eric Lombrozo. Contains fixup by Nicolas Dorier. Contains cleanup of CInv::GetCommand by Alex Morcos
* 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.
* | Improve COutPoint less operatorJoão Barbosa2016-03-181-1/+2
|/
* Merge #7184: Implement SequenceLocks functions for BIP 68Wladimir J. van der Laan2016-02-121-8/+30
|\ | | | | | | | | | | | | 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-101-8/+30
| | | | | | | | | | | | | | 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-131-1/+1
|/
* Prevector typePieter Wuille2015-11-131-2/+2
|
* 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
* 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-201-9/+0
|/
* Implement accurate memory accounting for mempoolPieter Wuille2015-07-101-0/+9
|
* Move recently introduced CTransAction::IsEquivalentTo to CWalletTxWladimir J. van der Laan2015-07-021-3/+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.
* Implement CTransaction::IsEquivalentTo(...)Tom Harding2015-04-111-0/+3
| | | | | | | | | | | Define CTransaction::IsEquivalentTo(const CTransaction& tx) True if only scriptSigs are different. In other words, true if the two transactions are malleability clones. In other words, true if the two transactions have the same effect on the outside universe. In the wallet, only SyncMetaData for equivalent transactions.
* Merge pull request #5831Wladimir J. van der Laan2015-03-161-2/+7
|\ | | | | | | | | | | | | 1d9b378 qa/rpc-tests/wallet: Tests for sendmany (Luke Dashjr) 40a7573 rpcwallet/sendmany: Just take an array of addresses to subtract fees from, rather than an Object with all values being identical (Luke Dashjr) 292623a Subtract fee from amount (Cozz Lovan) 90a43c1 [Qt] Code-movement-only: Format confirmation message in sendcoinsdialog (Cozz Lovan)
| * Subtract fee from amountCozz Lovan2015-03-131-2/+7
| | | | | | | | | | | | | | | | Fixes #2724 and #1570. Adds the automatically-subtract-the-fee-from-the-amount-and-send-whats-left feature to the GUI and RPC (sendtoaddress,sendmany).
* | src/primitives/transaction.h: endian compatibility in serializationWladimir J. van der Laan2015-03-061-1/+2
|/
* 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().
* Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* MOVEONLY: core/ -> primitives/Luke Dashjr2014-12-031-0/+276