mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Merge pull request #1737 from btcpayserver/payjoin-hw-fix
Fix Payjoin HWW signing
This commit is contained in:
commit
24439f1dc2
2 changed files with 11 additions and 5 deletions
|
@ -782,6 +782,12 @@ namespace BTCPayServer.Controllers
|
|||
}
|
||||
};
|
||||
AddSigningContext(redirectVm, vm.SigningContext);
|
||||
if (!string.IsNullOrEmpty(vm.SigningContext.OriginalPSBT) &&
|
||||
!string.IsNullOrEmpty(vm.SigningContext.PSBT))
|
||||
{
|
||||
//if a hw device signed a payjoin, we want it broadcast instantly
|
||||
redirectVm.Parameters.Add(new KeyValuePair<string, string>("command", "broadcast"));
|
||||
}
|
||||
return View("PostRedirect", redirectVm);
|
||||
}
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
@if (Model != null)
|
||||
{
|
||||
<input type="hidden" asp-for="PSBT" />
|
||||
<input type="hidden" asp-for="OriginalPSBT" />
|
||||
<input type="hidden" asp-for="PayJoinBIP21" />
|
||||
<input type="hidden" asp-for="EnforceLowR" />
|
||||
<input type="hidden" asp-for="ChangeAddress" />
|
||||
<input type="hidden" asp-for="PSBT" value="@Model.PSBT"/>
|
||||
<input type="hidden" asp-for="OriginalPSBT" value="@Model.OriginalPSBT"/>
|
||||
<input type="hidden" asp-for="PayJoinBIP21" value="@Model.PayJoinBIP21"/>
|
||||
<input type="hidden" asp-for="EnforceLowR" value="@Model.EnforceLowR" />
|
||||
<input type="hidden" asp-for="ChangeAddress" value="@Model.ChangeAddress" />
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue