diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-07-28 21:10:02 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-07-30 08:57:49 -0400 |
commit | fe5c49766c0dc5beaf186d77b568361242b20d5e (patch) | |
tree | e2968d2191be71f7d2758e253db2a522007e654a /src/txmempool.cpp | |
parent | ddd395f968a050be5dd0ae21ba7d189b6b7f73fd (diff) |
tx pool: Use the entry's hash instead of the one passed to addUnchecked
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r-- | src/txmempool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 257c88e5b2..4d04b6ef6d 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -364,7 +364,7 @@ void CTxMemPool::addUnchecked(const uint256& hash, const CTxMemPoolEntry &entry, // Update transaction for any feeDelta created by PrioritiseTransaction // TODO: refactor so that the fee delta is calculated before inserting // into mapTx. - std::map<uint256, CAmount>::const_iterator pos = mapDeltas.find(hash); + std::map<uint256, CAmount>::const_iterator pos = mapDeltas.find(entry.GetTx().GetHash()); if (pos != mapDeltas.end()) { const CAmount &delta = pos->second; if (delta) { |