mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Merge #9283: A few more CTransactionRef optimizations
91335baRemove unused MakeTransactionRef overloads (Pieter Wuille)6713f0fMake FillBlock consume txn_available to avoid shared_ptr copies (Pieter Wuille)62607d7Convert COrphanTx to keep a CTransactionRef (Pieter Wuille)c44e4c4Make AcceptToMemoryPool take CTransactionRef (Pieter Wuille)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user