Skip to content

Commit fe5c497

Browse files
author
MarcoFalke
committed
tx pool: Use the entry's hash instead of the one passed to addUnchecked
1 parent ddd395f commit fe5c497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/txmempool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ void CTxMemPool::addUnchecked(const uint256& hash, const CTxMemPoolEntry &entry,
364364
// Update transaction for any feeDelta created by PrioritiseTransaction
365365
// TODO: refactor so that the fee delta is calculated before inserting
366366
// into mapTx.
367-
std::map<uint256, CAmount>::const_iterator pos = mapDeltas.find(hash);
367+
std::map<uint256, CAmount>::const_iterator pos = mapDeltas.find(entry.GetTx().GetHash());
368368
if (pos != mapDeltas.end()) {
369369
const CAmount &delta = pos->second;
370370
if (delta) {

0 commit comments

Comments
 (0)