mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +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:
@@ -18,7 +18,7 @@ static void AddTx(const CTransaction& tx, const CAmount& nFee, CTxMemPool& pool)
|
||||
unsigned int sigOpCost = 4;
|
||||
LockPoints lp;
|
||||
pool.addUnchecked(tx.GetHash(), CTxMemPoolEntry(
|
||||
tx, nFee, nTime, dPriority, nHeight, pool.HasNoInputsOf(tx),
|
||||
MakeTransactionRef(tx), nFee, nTime, dPriority, nHeight, pool.HasNoInputsOf(tx),
|
||||
tx.GetValueOut(), spendsCoinbase, sigOpCost, lp));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user