Skip to content

Commit 8ed1801

Browse files
ajtownssdaftuar
authored andcommitted
CorruptionPossible -> TX_WITNESS_MUTATED
1 parent c558eba commit 8ed1801

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net_processing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
24192419
// Probably non-standard or insufficient fee
24202420
LogPrint(BCLog::MEMPOOL, " removed orphan tx %s\n", orphanHash.ToString());
24212421
vEraseQueue.push_back(orphanHash);
2422-
if (!orphanTx.HasWitness() && !orphan_state.CorruptionPossible()) {
2422+
if (!orphanTx.HasWitness() && orphan_state.GetReason() != ValidationInvalidReason::TX_WITNESS_MUTATED) {
24232423
// Do not use rejection cache for witness transactions or
24242424
// witness-stripped transactions, as they can have been malleated.
24252425
// See https://github.com/bitcoin/bitcoin/issues/8279 for details.
@@ -2467,7 +2467,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
24672467
recentRejects->insert(tx.GetHash());
24682468
}
24692469
} else {
2470-
if (!tx.HasWitness() && !state.CorruptionPossible()) {
2470+
if (!tx.HasWitness() && state.GetReason() != ValidationInvalidReason::TX_WITNESS_MUTATED) {
24712471
// Do not use rejection cache for witness transactions or
24722472
// witness-stripped transactions, as they can have been malleated.
24732473
// See https://github.com/bitcoin/bitcoin/issues/8279 for details.

0 commit comments

Comments
 (0)