remove useless code

This commit is contained in:
nicolas.dorier
2019-05-13 08:22:29 +09:00
parent 7e164d2ec3
commit 663b5beac1

View File

@@ -117,10 +117,6 @@ namespace BTCPayServer.Services
public override async Task<PSBT> SignTransactionAsync(PSBT psbt, HDFingerprint? rootFingerprint, BitcoinExtPubKey accountKey, Script changeHint, CancellationToken cancellationToken)
{
HashSet<HDFingerprint> knownFingerprints = new HashSet<HDFingerprint>();
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)