make sure we don't sign same input twice

This commit is contained in:
nicolas.dorier 2019-05-13 08:21:54 +09:00
parent f9fb0bb477
commit 7e164d2ec3
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -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()
{