mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Remove useless code (#6817)
* Remove unused code * Obsolete SigningKey concept
This commit is contained in:
@@ -997,7 +997,7 @@ namespace BTCPayServer.Controllers
|
||||
Labels = _labelService.CreateTransactionTagModels(info, Request),
|
||||
Link = _transactionLinkProviders.GetTransactionLink(pmi, coin.OutPoint.ToString()),
|
||||
Confirmations = coin.Confirmations,
|
||||
Timestamp = coin.Timestamp
|
||||
Timestamp = coin.Timestamp
|
||||
};
|
||||
}).ToArray();
|
||||
}
|
||||
@@ -1479,13 +1479,12 @@ namespace BTCPayServer.Controllers
|
||||
var settings = GetDerivationSchemeSettings(walletId);
|
||||
if (settings is null)
|
||||
return NotFound();
|
||||
var signingKeySettings = settings.GetSigningAccountKeySettings(extKey);
|
||||
var signingKeySettings = settings.GetAccountKeySettingsFromRoot(extKey);
|
||||
if (signingKeySettings is null)
|
||||
{
|
||||
// Let's try best effort if RootFingerprint isn't configured, but AccountKeyPath is
|
||||
signingKeySettings = settings.AccountKeySettings
|
||||
.Where(a => a.RootFingerprint is null && a.AccountKeyPath is not null)
|
||||
.FirstOrDefault();
|
||||
.FirstOrDefault(a => a.RootFingerprint is null && a.AccountKeyPath is not null);
|
||||
if (signingKeySettings is not null)
|
||||
signingKeySettings.RootFingerprint = extKey.GetPublicKey().GetHDFingerPrint();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user