From ebafdcabb10a89b491cdb8430bc43b0220d436df Mon Sep 17 00:00:00 2001 From: Alex Morcos Date: Fri, 11 Nov 2016 14:16:42 -0500 Subject: Pass pointers to existing CTxMemPoolEntries to fee estimation --- src/txmempool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/txmempool.cpp') diff --git a/src/txmempool.cpp b/src/txmempool.cpp index e97099eb2..4f4540a1f 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -594,14 +594,14 @@ void CTxMemPool::removeConflicts(const CTransaction &tx) void CTxMemPool::removeForBlock(const std::vector& vtx, unsigned int nBlockHeight) { LOCK(cs); - std::vector entries; + std::vector entries; for (const auto& tx : vtx) { uint256 hash = tx->GetHash(); indexed_transaction_set::iterator i = mapTx.find(hash); if (i != mapTx.end()) - entries.push_back(*i); + entries.push_back(&*i); } // Before the txs in the new block have been removed from the mempool, update policy estimates minerPolicyEstimator->processBlock(nBlockHeight, entries); -- cgit v1.2.3