Don't scan 49' or 84' if not segwit

This commit is contained in:
nicolas.dorier
2019-05-10 10:55:10 +09:00
parent 75f2749b19
commit 95e7d3dfc4
2 changed files with 12 additions and 5 deletions

View File

@@ -561,8 +561,8 @@ namespace BTCPayServer.Controllers
if (derivationSettings.AccountKeyPath == null)
{
// If the saved wallet key path is not present or incorrect, let's scan the wallet to see if it can sign strategy
var foundKeyPath = await hw.FindKeyPathFromPubkeys(network,
derivationSettings.AccountDerivation.GetExtPubKeys().Select(p => p.GetPublicKey()).ToArray(),
var foundKeyPath = await hw.FindKeyPathFromDerivation(network,
derivationSettings.AccountDerivation,
normalOperationTimeout.Token);
derivationSettings.AccountKeyPath = foundKeyPath ?? throw new HardwareWalletException($"This store is not configured to use this ledger");
storeData.SetSupportedPaymentMethod(derivationSettings);