Skip to content

Commit

Permalink
Do not shadow local variable named tx.
Browse files Browse the repository at this point in the history
  • Loading branch information
paveljanik committed Jan 20, 2017
1 parent 82274c0 commit 44f2baa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1877,8 +1877,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
}
}

for (const CTransactionRef& tx : lRemovedTxn)
AddToCompactExtraTransactions(tx);
for (const CTransactionRef& removedTx : lRemovedTxn)
AddToCompactExtraTransactions(removedTx);

int nDoS = 0;
if (state.IsInvalid(nDoS))
Expand Down

0 comments on commit 44f2baa

Please sign in to comment.