diff options
| author | Alex Morcos <[email protected]> | 2016-11-11 11:57:51 -0500 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2017-01-04 12:09:33 -0500 |
| commit | 84f7ab08d2e8e83a584d72fdf44f68b34baf8165 (patch) | |
| tree | f5076b10d4afd783a5fb77f3a19aff1dab1fd9dd /src/test/test_bitcoin.h | |
| parent | Don't track transactions at all during IBD. (diff) | |
| download | discoin-84f7ab08d2e8e83a584d72fdf44f68b34baf8165.tar.xz discoin-84f7ab08d2e8e83a584d72fdf44f68b34baf8165.zip | |
Remove member variable hadNoDependencies from CTxMemPoolEntry
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.
Diffstat (limited to 'src/test/test_bitcoin.h')
| -rw-r--r-- | src/test/test_bitcoin.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/test_bitcoin.h b/src/test/test_bitcoin.h index 0fe77437e..5ef6fa764 100644 --- a/src/test/test_bitcoin.h +++ b/src/test/test_bitcoin.h @@ -70,14 +70,13 @@ struct TestMemPoolEntryHelper int64_t nTime; double dPriority; unsigned int nHeight; - bool hadNoDependencies; bool spendsCoinbase; unsigned int sigOpCost; LockPoints lp; TestMemPoolEntryHelper() : nFee(0), nTime(0), dPriority(0.0), nHeight(1), - hadNoDependencies(false), spendsCoinbase(false), sigOpCost(4) { } + spendsCoinbase(false), sigOpCost(4) { } CTxMemPoolEntry FromTx(const CMutableTransaction &tx, CTxMemPool *pool = NULL); CTxMemPoolEntry FromTx(const CTransaction &tx, CTxMemPool *pool = NULL); @@ -87,7 +86,6 @@ struct TestMemPoolEntryHelper TestMemPoolEntryHelper &Time(int64_t _time) { nTime = _time; return *this; } TestMemPoolEntryHelper &Priority(double _priority) { dPriority = _priority; return *this; } TestMemPoolEntryHelper &Height(unsigned int _height) { nHeight = _height; return *this; } - TestMemPoolEntryHelper &HadNoDependencies(bool _hnd) { hadNoDependencies = _hnd; return *this; } TestMemPoolEntryHelper &SpendsCoinbase(bool _flag) { spendsCoinbase = _flag; return *this; } TestMemPoolEntryHelper &SigOpsCost(unsigned int _sigopsCost) { sigOpCost = _sigopsCost; return *this; } }; |