Make AcceptToMemoryPool take CTransactionRef

This commit is contained in:
Pieter Wuille
2016-11-10 22:29:19 -08:00
parent e8cfe1ee2d
commit c44e4c467c
10 changed files with 31 additions and 26 deletions

View File

@@ -151,7 +151,7 @@ CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(const CTransaction &txn, CTxMemPo
// Hack to assume either its completely dependent on other mempool txs or not at all
CAmount inChainValue = hasNoDependencies ? txn.GetValueOut() : 0;
return CTxMemPoolEntry(txn, nFee, nTime, dPriority, nHeight,
return CTxMemPoolEntry(MakeTransactionRef(txn), nFee, nTime, dPriority, nHeight,
hasNoDependencies, inChainValue, spendsCoinbase, sigOpCost, lp);
}