mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
Fix "Key already added in dictionary" error when signing with ledger
This commit is contained in:
parent
fb77fddcc3
commit
221e2c7898
@ -126,11 +126,11 @@ namespace BTCPayServer.Services
|
||||
.Inputs
|
||||
.HDKeysFor(accountKey, accountKeyPath)
|
||||
.Where(hd => !hd.Coin.PartialSigs.ContainsKey(hd.PubKey)) // Don't want to sign something twice
|
||||
.GroupBy(hd => hd.Coin)
|
||||
.GroupBy(hd => hd.Coin.PrevOut, hd => hd)
|
||||
.Select(i => new SignatureRequest()
|
||||
{
|
||||
InputCoin = i.Key.GetSignableCoin(),
|
||||
InputTransaction = i.Key.NonWitnessUtxo,
|
||||
InputCoin = i.First().Coin.GetSignableCoin(),
|
||||
InputTransaction = i.First().Coin.NonWitnessUtxo,
|
||||
KeyPath = i.First().RootedKeyPath.KeyPath,
|
||||
PubKey = i.First().PubKey
|
||||
}).ToArray();
|
||||
|
Loading…
Reference in New Issue
Block a user