@@ -1730,10 +1730,10 @@ void static ProcessOrphanTx(CConnman* connman, std::set<uint256>& orphan_work_se
1730
1730
// Use a dummy CValidationState so someone can't setup nodes to counter-DoS based on orphan
1731
1731
// resolution (that is, feeding people an invalid transaction based on LegitTxX in order to get
1732
1732
// anyone relaying LegitTxX banned)
1733
- CValidationState stateDummy ;
1733
+ CValidationState orphan_state ;
1734
1734
1735
1735
if (setMisbehaving.count (fromPeer)) continue ;
1736
- if (AcceptToMemoryPool (mempool, stateDummy , porphanTx, &fMissingInputs2 , &removed_txn, false /* bypass_limits */ , 0 /* nAbsurdFee */ )) {
1736
+ if (AcceptToMemoryPool (mempool, orphan_state , porphanTx, &fMissingInputs2 , &removed_txn, false /* bypass_limits */ , 0 /* nAbsurdFee */ )) {
1737
1737
LogPrint (BCLog::MEMPOOL, " accepted orphan tx %s\n " , orphanHash.ToString ());
1738
1738
RelayTransaction (orphanTx, connman);
1739
1739
for (unsigned int i = 0 ; i < orphanTx.vout .size (); i++) {
@@ -1748,7 +1748,7 @@ void static ProcessOrphanTx(CConnman* connman, std::set<uint256>& orphan_work_se
1748
1748
done = true ;
1749
1749
} else if (!fMissingInputs2 ) {
1750
1750
int nDos = 0 ;
1751
- if (stateDummy .IsInvalid (nDos) && nDos > 0 ) {
1751
+ if (orphan_state .IsInvalid (nDos) && nDos > 0 ) {
1752
1752
// Punish peer that gave us an invalid orphan tx
1753
1753
Misbehaving (fromPeer, nDos);
1754
1754
setMisbehaving.insert (fromPeer);
@@ -1757,7 +1757,7 @@ void static ProcessOrphanTx(CConnman* connman, std::set<uint256>& orphan_work_se
1757
1757
// Has inputs but not accepted to mempool
1758
1758
// Probably non-standard or insufficient fee
1759
1759
LogPrint (BCLog::MEMPOOL, " removed orphan tx %s\n " , orphanHash.ToString ());
1760
- if (!orphanTx.HasWitness () && !stateDummy .CorruptionPossible ()) {
1760
+ if (!orphanTx.HasWitness () && !orphan_state .CorruptionPossible ()) {
1761
1761
// Do not use rejection cache for witness transactions or
1762
1762
// witness-stripped transactions, as they can have been malleated.
1763
1763
// See https://github.com/bitcoin/bitcoin/issues/8279 for details.
0 commit comments