tx pool: Use the entry's hash instead of the one passed to addUnchecked
This commit is contained in:
1 parent
ddd395f968
commit
fe5c49766c
1 file changed
+1
-1
+1
-1
@@ -364,7 +364,7 @@ void CTxMemPool::addUnchecked(const uint256& hash, const CTxMemPoolEntry &entry,
|
|||||||
// Update transaction for any feeDelta created by PrioritiseTransaction
|
// Update transaction for any feeDelta created by PrioritiseTransaction
|
||||||
// TODO: refactor so that the fee delta is calculated before inserting
|
// TODO: refactor so that the fee delta is calculated before inserting
|
||||||
// into mapTx.
|
// 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()) {
|
if (pos != mapDeltas.end()) {
|
||||||
const CAmount &delta = pos->second;
|
const CAmount &delta = pos->second;
|
||||||
if (delta) {
|
if (delta) {
|
||||||
|
|||||||
Reference in new issue
Block a user