|
|
@ -126,7 +126,11 @@ TestChain100Setup::~TestChain100Setup() |
|
|
|
|
|
|
|
|
|
|
|
CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(CMutableTransaction &tx, CTxMemPool *pool) { |
|
|
|
CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(CMutableTransaction &tx, CTxMemPool *pool) { |
|
|
|
CTransaction txn(tx); |
|
|
|
CTransaction txn(tx); |
|
|
|
bool hasNoDependencies = pool ? pool->HasNoInputsOf(tx) : hadNoDependencies; |
|
|
|
return FromTx(txn, pool); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(CTransaction &txn, CTxMemPool *pool) { |
|
|
|
|
|
|
|
bool hasNoDependencies = pool ? pool->HasNoInputsOf(txn) : hadNoDependencies; |
|
|
|
// Hack to assume either its completely dependent on other mempool txs or not at all
|
|
|
|
// Hack to assume either its completely dependent on other mempool txs or not at all
|
|
|
|
CAmount inChainValue = hasNoDependencies ? txn.GetValueOut() : 0; |
|
|
|
CAmount inChainValue = hasNoDependencies ? txn.GetValueOut() : 0; |
|
|
|
|
|
|
|
|
|
|
|