aboutsummaryrefslogtreecommitdiff
path: root/src/test/mempool_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove member variable hadNoDependencies from CTxMemPoolEntryAlex Morcos2017-01-041-2/+0
| | | | Fee estimation can just check its own mapMemPoolTxs to determine the same information. Note that now fee estimation for block processing must happen before those transactions are removed, but this shoudl be a speedup.
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Merge #7562: Bump transaction version default to 2Wladimir J. van der Laan2016-12-151-2/+11
|\ | | | | | | | | | | | | c5c92c4 Update python tests for default tx version=2 (BtcDrak) dab207e Preserve tx version=1 for certain tests (BtcDrak) c5d746a tiny test fix for mempool_tests (Alex Morcos) 1f0ca1a Bump default transaction version to 2 (BtcDrak)
| * tiny test fix for mempool_testsAlex Morcos2016-12-081-2/+11
| |
* | remove internal tracking of mempool conflicts for reporting to walletAlex Morcos2016-12-051-19/+21
| |
* | remove external usage of mempool conflict trackingAlex Morcos2016-12-051-1/+1
|/
* Introduce convenience type CTransactionRefPieter Wuille2016-11-191-4/+4
|
* Make CBlock::vtx a vector of shared_ptr<CTransaction>Pieter Wuille2016-11-191-3/+3
|
* trivial: Remove variable unused after refactoringDaniel Kraft2016-11-021-1/+0
| | | | | | Remove a variable that is now unused after the recent refactoring (in 51f278329d43398428d60f5986f8d29a2041d28d) but has not been cleaned up so far.
* Return shared_ptr<CTransaction> from mempool removesPieter Wuille2016-10-211-1/+2
|
* Make removed and conflicted arguments optional to removePieter Wuille2016-10-211-15/+12
|
* BIP141: Other consensus critical limits, and BIP145Pieter Wuille2016-06-221-5/+6
| | | | Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
* Add ancestor feerate index to mempoolSuhas Daftuar2016-03-141-0/+104
|
* Rename CTxMemPool::remove -> removeRecursiveSuhas Daftuar2016-03-141-10/+10
| | | | | remove is no longer called non-recursively, so simplify the logic and eliminate an unnecessary parameter
* Add tags to mempool's mapTx indicesSuhas Daftuar2016-02-161-11/+11
|
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* Add a score index to the mempool.Alex Morcos2015-12-011-9/+43
| | | | The score index is meant to represent the order of priority for being included in a block for miners. Initially this is set to the transactions modified (by any feeDelta) fee rate. Index improvements and unit tests by sdaftuar.
* Implement helper class for CTxMemPoolEntry constructorAlex Morcos2015-11-161-32/+37
| | | | This is only for unit tests.
* Fix bug in mempool_tests unit testAlex Morcos2015-11-131-2/+2
|
* Undo GetMinFee-requires-extra-call-to-hit-0Matt Corallo2015-10-141-1/+0
|
* Add reasonable test case for mempool trimmingMatt Corallo2015-10-131-0/+154
|
* Reverse the sort on the mempool's feerate indexSuhas Daftuar2015-10-131-23/+23
|
* Track transaction packages in CTxMemPoolEntrySuhas Daftuar2015-09-191-10/+139
| | | | | | | | | | | | | Associate with each CTxMemPoolEntry all the size/fees of descendant mempool transactions. Sort mempool by max(feerate of entry, feerate of descendants). Update statistics on-the-fly as transactions enter or leave the mempool. Also add ancestor and descendant limiting, so that transactions can be rejected if the number or size of unconfirmed ancestors exceeds a target, or if adding a transaction would cause some other mempool entry to have too many (or too large) a set of unconfirmed in- mempool descendants.
* TxMemPool: Change mapTx to a boost::multi_index_containerAshley Holman2015-09-191-0/+52
| | | | | | Indexes on: - Tx Hash - Fee Rate (fee-per-kb)
* Includes: Cleanup around net main and walletJorge Timón2015-07-231-1/+0
| | | | | | -Move from .h to .cpp: in main, net and wallet -Remove unnecessary #include "main.h" -Cleanup some wallet files includes
* Keep mempool consistent during block-reorgsGavin Andresen2015-03-261-0/+104
This fixes a subtle bug involving block re-orgs and non-standard transactions. Start with a block containing a non-standard transaction, and one or more transactions spending it in the memory pool. Then re-org away from that block to another chain that does not contain the non-standard transaction. Result before this fix: the dependent transactions get stuck in the mempool without their parent, putting the mempool in an inconsistent state. Tested with a new unit test.