Track transaction packages in CTxMemPoolEntry
commit5add7a74a672cb12b0a2a630d318d9bc64dd0f77
authorSuhas Daftuar <sdaftuar@gmail.com>
Wed, 15 Jul 2015 18:47:45 +0000 (15 14:47 -0400)
committerSuhas Daftuar <sdaftuar@chaincode.com>
Sat, 19 Sep 2015 17:25:48 +0000 (19 13:25 -0400)
treee8b86acba14f47100af0bbadeb748f6f6a002d58
parent34628a18070064e75b35f28fd6a43d5c23832eb8
Track transaction packages in CTxMemPoolEntry

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.
qa/pull-tester/rpc-tests.sh
qa/rpc-tests/mempool_packages.py [new file with mode: 0755]
src/init.cpp
src/main.cpp
src/main.h
src/memusage.h
src/rpcblockchain.cpp
src/test/mempool_tests.cpp
src/txmempool.cpp
src/txmempool.h