mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
make sure we don't sign same input twice
This commit is contained in:
parent
f9fb0bb477
commit
7e164d2ec3
1 changed files with 1 additions and 0 deletions
|
@ -129,6 +129,7 @@ namespace BTCPayServer.Services
|
|||
var signatureRequests = psbt
|
||||
.Inputs
|
||||
.HDKeysFor(rootFingerprint, accountKey)
|
||||
.Where(hd => !hd.Coin.PartialSigs.ContainsKey(hd.PubKey)) // Don't want to sign something twice
|
||||
.GroupBy(hd => hd.Coin)
|
||||
.Select(i => new SignatureRequest()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue