Fix enable payjoin when p2sh

This commit is contained in:
Kukks 2020-04-16 17:22:55 +02:00
parent 8c81dae167
commit dfe655393d

View file

@ -159,8 +159,8 @@ namespace BTCPayServer.Payments.Bitcoin
onchainMethod.DepositAddress = (await prepare.ReserveAddress).Address.ToString();
onchainMethod.PayjoinEnabled = blob.PayJoinEnabled &&
supportedPaymentMethod.AccountDerivation.ScriptPubKeyType() ==
ScriptPubKeyType.Segwit &&
PayjoinClient.SupportedFormats.Contains(supportedPaymentMethod
.AccountDerivation.ScriptPubKeyType()) &&
network.SupportPayJoin;
if (onchainMethod.PayjoinEnabled)
{