Remove control statement in the beginning of the function
MODIFY
WalletWasabi/Blockchain/Transactions/TransactionProcessor.cs
WalletWasabi/Blockchain/Transactions/TransactionProcessor.cs
@@ -46,13 +46,11 @@ namespace WalletWasabi.Blockchain.Transactions
public bool Process(SmartTransaction tx)
{
- if (!tx.Transaction.PossiblyP2WPKHInvolved())
+ var walletRelevant = false;
+ // We do not care about non-witness transactions for other than mempool cleanup.
+ if (tx.Transaction.PossiblyP2WPKHInvolved())
{
- return false; // We do not care about non-witness transactions for other than mempool cleanup.
- }
-
uint256 txId = tx.GetHash();
- var walletRelevant = false;
if (tx.Confirmed)
{
@@ -250,6 +248,7 @@ namespace WalletWasabi.Blockchain.Transactions
{
CoinReceived?.Invoke(this, newCoin);
}
+ }
return walletRelevant;
}

Remove control statement in the beginning of the function