mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-02 21:54:23 +01:00
make sure we don't sign same input twice
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user