Fix Payjoin HWW signing

fixes #1557
This commit is contained in:
Kukks
2020-07-13 10:54:39 +02:00
parent e45c5ae71e
commit 572c7ebbd8
2 changed files with 12 additions and 5 deletions

View File

@@ -314,6 +314,13 @@ namespace BTCPayServer.Controllers
string error = null;
try
{
if (!string.IsNullOrEmpty(vm.SigningContext.OriginalPSBT) &&
!string.IsNullOrEmpty(vm.SigningContext.PSBT))
{
//if a hw device signed, we are sent back to the ready page with updated psbt data for final verification. If they are happy, they will click to broadcast with payjoin which brings us here.
return await WalletPSBTReady(walletId, vm, "broadcast");
}
var proposedPayjoin = await GetPayjoinProposedTX(new BitcoinUrlBuilder(vm.SigningContext.PayJoinBIP21, network.NBitcoinNetwork), psbt,
derivationSchemeSettings, network, cancellationToken);
try