From dfe655393dd419d730cf4264d2a6645c407e4e4e Mon Sep 17 00:00:00 2001 From: Kukks Date: Thu, 16 Apr 2020 17:22:55 +0200 Subject: [PATCH] Fix enable payjoin when p2sh --- BTCPayServer/Payments/Bitcoin/BitcoinLikePaymentHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/Payments/Bitcoin/BitcoinLikePaymentHandler.cs b/BTCPayServer/Payments/Bitcoin/BitcoinLikePaymentHandler.cs index 1eb7869a3..ed5e971e7 100644 --- a/BTCPayServer/Payments/Bitcoin/BitcoinLikePaymentHandler.cs +++ b/BTCPayServer/Payments/Bitcoin/BitcoinLikePaymentHandler.cs @@ -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) {