diff options
| author | Matt Corallo <[email protected]> | 2019-01-17 14:35:01 +1000 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2019-05-02 15:12:38 -0400 |
| commit | 6e55b292b0ea944897b6dc2f766446fd209af484 (patch) | |
| tree | 8793ce803819c7234effc069adc306283d36141f /src/net_processing.cpp | |
| parent | LookupBlockIndex -> CACHED_INVALID (diff) | |
| download | discoin-6e55b292b0ea944897b6dc2f766446fd209af484.tar.xz discoin-6e55b292b0ea944897b6dc2f766446fd209af484.zip | |
CorruptionPossible -> TX_WITNESS_MUTATED
Co-authored-by: Anthony Towns <[email protected]>
Diffstat (limited to 'src/net_processing.cpp')
| -rw-r--r-- | src/net_processing.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 5c5faa130..99c791dae 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1777,7 +1777,7 @@ void static ProcessOrphanTx(CConnman* connman, std::set<uint256>& orphan_work_se // Has inputs but not accepted to mempool // Probably non-standard or insufficient fee LogPrint(BCLog::MEMPOOL, " removed orphan tx %s\n", orphanHash.ToString()); - if (!orphanTx.HasWitness() && !orphan_state.CorruptionPossible()) { + if (!orphanTx.HasWitness() && orphan_state.GetReason() != ValidationInvalidReason::TX_WITNESS_MUTATED) { // Do not use rejection cache for witness transactions or // witness-stripped transactions, as they can have been malleated. // See https://github.com/bitcoin/bitcoin/issues/8279 for details. @@ -2494,7 +2494,7 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr recentRejects->insert(tx.GetHash()); } } else { - if (!tx.HasWitness() && !state.CorruptionPossible()) { + if (!tx.HasWitness() && state.GetReason() != ValidationInvalidReason::TX_WITNESS_MUTATED) { // Do not use rejection cache for witness transactions or // witness-stripped transactions, as they can have been malleated. // See https://github.com/bitcoin/bitcoin/issues/8279 for details. |