diff --git a/BTCPayServer/Services/LedgerHardwareWalletService.cs b/BTCPayServer/Services/LedgerHardwareWalletService.cs index 653ed8822..de050a35f 100644 --- a/BTCPayServer/Services/LedgerHardwareWalletService.cs +++ b/BTCPayServer/Services/LedgerHardwareWalletService.cs @@ -117,10 +117,6 @@ namespace BTCPayServer.Services public override async Task SignTransactionAsync(PSBT psbt, HDFingerprint? rootFingerprint, BitcoinExtPubKey accountKey, Script changeHint, CancellationToken cancellationToken) { - HashSet knownFingerprints = new HashSet(); - knownFingerprints.Add(accountKey.GetPublicKey().GetHDFingerPrint()); - if (rootFingerprint is HDFingerprint fp) - knownFingerprints.Add(fp); var unsigned = psbt.GetGlobalTransaction(); var changeKeyPath = psbt.Outputs.HDKeysFor(rootFingerprint, accountKey) .Where(o => changeHint == null ? true : changeHint == o.Coin.ScriptPubKey)