diff options
| author | Suhas Daftuar <[email protected]> | 2015-10-29 14:06:13 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2015-11-30 13:12:53 -0500 |
| commit | 7e49f5f8b4e237d7212d027a7bea4bbd52c9e7b6 (patch) | |
| tree | 43ad2997b024e53c22b81c7d585e0a752c134167 /src/test/test_bitcoin.h | |
| parent | removeForReorg calls once-per-disconnect-> once-per-reorg (diff) | |
| download | discoin-7e49f5f8b4e237d7212d027a7bea4bbd52c9e7b6.tar.xz discoin-7e49f5f8b4e237d7212d027a7bea4bbd52c9e7b6.zip | |
Track coinbase spends in CTxMemPoolEntry
This allows us to optimize CTxMemPool::removeForReorg.
Diffstat (limited to 'src/test/test_bitcoin.h')
| -rw-r--r-- | src/test/test_bitcoin.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test_bitcoin.h b/src/test/test_bitcoin.h index 815b22741..343c27673 100644 --- a/src/test/test_bitcoin.h +++ b/src/test/test_bitcoin.h @@ -65,10 +65,11 @@ struct TestMemPoolEntryHelper double dPriority; unsigned int nHeight; bool hadNoDependencies; + bool spendsCoinbase; TestMemPoolEntryHelper() : nFee(0), nTime(0), dPriority(0.0), nHeight(1), - hadNoDependencies(false) { } + hadNoDependencies(false), spendsCoinbase(false) { } CTxMemPoolEntry FromTx(CMutableTransaction &tx, CTxMemPool *pool = NULL); @@ -78,5 +79,6 @@ struct TestMemPoolEntryHelper 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; } }; #endif |