diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-11-17 17:58:11 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-11-17 17:58:20 +0100 |
| commit | e8df8a5077df673f1914f4a40bf54b126d13de1c (patch) | |
| tree | fef0fa941508ae83a5922d89c78f1546df0eec29 /src/test/test_bitcoin.cpp | |
| parent | Merge pull request #7026 (diff) | |
| parent | Implement helper class for CTxMemPoolEntry constructor (diff) | |
| download | discoin-e8df8a5077df673f1914f4a40bf54b126d13de1c.tar.xz discoin-e8df8a5077df673f1914f4a40bf54b126d13de1c.zip | |
Merge pull request #7020
e587bc3 Implement helper class for CTxMemPoolEntry constructor (Alex Morcos)
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); |