Change less lines
MODIFY
WalletWasabi/Blockchain/Transactions/TransactionFactory.cs
WalletWasabi/Blockchain/Transactions/TransactionFactory.cs
@@ -229,13 +229,10 @@ public class TransactionFactory
builder = builder.AddKeys(signingKeys.ToArray());
builder.SignPSBT(psbt);
- var isPayjoin = false;
-
// Try to pay using payjoin
if (payjoinClient is not null)
{
psbt = TryNegotiatePayjoin(payjoinClient, builder, psbt, changeHdPubKey);
- isPayjoin = true;
psbt.AddKeyPaths(KeyManager);
psbt.AddPrevTxs(TransactionStore);
}
@@ -243,7 +240,7 @@ public class TransactionFactory
psbt.Finalize();
tx = psbt.ExtractTransaction();
- if (isPayjoin)
+ if (payjoinClient is not null)
{
builder.CoinFinder = (outpoint) => psbt.Inputs.Select(x => x.GetCoin()).Single(x => x?.Outpoint == outpoint)!;
}

Change less lines