From 7e164d2ec355a280793f4651e2bee00e39c41341 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 13 May 2019 08:21:54 +0900 Subject: [PATCH] make sure we don't sign same input twice --- BTCPayServer/Services/LedgerHardwareWalletService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BTCPayServer/Services/LedgerHardwareWalletService.cs b/BTCPayServer/Services/LedgerHardwareWalletService.cs index 798509b5d..653ed8822 100644 --- a/BTCPayServer/Services/LedgerHardwareWalletService.cs +++ b/BTCPayServer/Services/LedgerHardwareWalletService.cs @@ -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() {