@@ -416,7 +416,7 @@ void CTxMemPool::removeConflicts(const CTransaction &tx, std::list<CTransaction>
416
416
std::map<COutPoint, CInPoint>::iterator it = mapNextTx.find (txin.prevout );
417
417
if (it != mapNextTx.end ()) {
418
418
const CTransaction &txConflict = *it->second .ptx ;
419
- if (txConflict != tx)
419
+ if (txConflict. GetHash () != tx. GetHash () )
420
420
{
421
421
remove (txConflict, removed, true );
422
422
}
@@ -428,7 +428,7 @@ void CTxMemPool::removeConflicts(const CTransaction &tx, std::list<CTransaction>
428
428
std::map<uint256, const CTransaction*>::iterator it = mapSproutNullifiers.find (nf);
429
429
if (it != mapSproutNullifiers.end ()) {
430
430
const CTransaction &txConflict = *it->second ;
431
- if (txConflict != tx) {
431
+ if (txConflict. GetHash () != tx. GetHash () ) {
432
432
remove (txConflict, removed, true );
433
433
}
434
434
}
@@ -438,7 +438,7 @@ void CTxMemPool::removeConflicts(const CTransaction &tx, std::list<CTransaction>
438
438
std::map<uint256, const CTransaction*>::iterator it = mapSaplingNullifiers.find (spendDescription.nullifier );
439
439
if (it != mapSaplingNullifiers.end ()) {
440
440
const CTransaction &txConflict = *it->second ;
441
- if (txConflict != tx) {
441
+ if (txConflict. GetHash () != tx. GetHash () ) {
442
442
remove (txConflict, removed, true );
443
443
}
444
444
}
@@ -447,7 +447,7 @@ void CTxMemPool::removeConflicts(const CTransaction &tx, std::list<CTransaction>
447
447
std::map<uint256, const CTransaction*>::iterator it = mapOrchardNullifiers.find (orchardNullifier);
448
448
if (it != mapOrchardNullifiers.end ()) {
449
449
const CTransaction &txConflict = *it->second ;
450
- if (txConflict != tx) {
450
+ if (txConflict. GetHash () != tx. GetHash () ) {
451
451
remove (txConflict, removed, true );
452
452
}
453
453
}
0 commit comments