diff options
| author | Alex Morcos <[email protected]> | 2015-11-14 17:04:15 -0500 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2015-11-16 20:41:32 -0500 |
| commit | e587bc3fd9ed7eb1aa787859748f37dd387f9cec (patch) | |
| tree | 64af57efb50d03f9fc81f00dcf261d293cdfd803 /src/test/test_bitcoin.cpp | |
| parent | Merge pull request #6986 (diff) | |
| download | discoin-e587bc3fd9ed7eb1aa787859748f37dd387f9cec.tar.xz discoin-e587bc3fd9ed7eb1aa787859748f37dd387f9cec.zip | |
Implement helper class for CTxMemPoolEntry constructor
This is only for unit tests.
Diffstat (limited to 'src/test/test_bitcoin.cpp')
| -rw-r--r-- | src/test/test_bitcoin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 319e63ba5..9a3517a27 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -15,6 +15,7 @@ #include "pubkey.h" #include "random.h" #include "txdb.h" +#include "txmempool.h" #include "ui_interface.h" #include "util.h" #ifdef ENABLE_WALLET @@ -140,6 +141,12 @@ TestChain100Setup::~TestChain100Setup() { } + +CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(CMutableTransaction &tx, CTxMemPool *pool) { + return CTxMemPoolEntry(tx, nFee, nTime, dPriority, nHeight, + pool ? pool->HasNoInputsOf(tx) : hadNoDependencies); +} + void Shutdown(void* parg) { exit(0); |