aboutsummaryrefslogtreecommitdiff
path: root/src/test/mempool_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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.