Skip to content

Commit 6e55b29

Browse files
TheBlueMattajtowns
authored andcommitted
CorruptionPossible -> TX_WITNESS_MUTATED
Co-authored-by: Anthony Towns <[email protected]>
1 parent 7df16e7 commit 6e55b29

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
@@ -1777,7 +1777,7 @@ void static ProcessOrphanTx(CConnman* connman, std::set<uint256>& orphan_work_se
17771777
// Has inputs but not accepted to mempool
17781778
// Probably non-standard or insufficient fee
17791779
LogPrint(BCLog::MEMPOOL, " removed orphan tx %s\n", orphanHash.ToString());
1780-
if (!orphanTx.HasWitness() && !orphan_state.CorruptionPossible()) {
1780+
if (!orphanTx.HasWitness() && orphan_state.GetReason() != ValidationInvalidReason::TX_WITNESS_MUTATED) {
17811781
// Do not use rejection cache for witness transactions or
17821782
// witness-stripped transactions, as they can have been malleated.
17831783
// See https://github.com/bitcoin/bitcoin/issues/8279 for details.
@@ -2494,7 +2494,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
24942494
recentRejects->insert(tx.GetHash());
24952495
}
24962496
} else {
2497-
if (!tx.HasWitness() && !state.CorruptionPossible()) {
2497+
if (!tx.HasWitness() && state.GetReason() != ValidationInvalidReason::TX_WITNESS_MUTATED) {
24982498
// Do not use rejection cache for witness transactions or
24992499
// witness-stripped transactions, as they can have been malleated.
25002500
// See https://github.com/bitcoin/bitcoin/issues/8279 for details.

0 commit comments

Comments
 (0)