Merge pull request #2575 from NicolasDorier/refactor/wallet-cleanup

Cleanup some old code in wallet setup
This commit is contained in:
Nicolas Dorier
2021-06-17 21:20:28 +09:00
committed by GitHub
11 changed files with 122 additions and 224 deletions

View File

@@ -1088,7 +1088,9 @@ namespace BTCPayServer.Controllers
DerivationScheme = derivationSchemeSettings.AccountDerivation.ToString(),
DerivationSchemeInput = derivationSchemeSettings.AccountOriginal,
SelectedSigningKey = derivationSchemeSettings.SigningKey.ToString(),
NBXSeedAvailable = await CanUseHotWallet() && !string.IsNullOrEmpty(await ExplorerClientProvider.GetExplorerClient(walletId.CryptoCode)
NBXSeedAvailable = derivationSchemeSettings.IsHotWallet &&
await CanUseHotWallet() &&
!string.IsNullOrEmpty(await ExplorerClientProvider.GetExplorerClient(walletId.CryptoCode)
.GetMetadataAsync<string>(GetDerivationSchemeSettings(walletId).AccountDerivation,
WellknownMetadataKeys.MasterHDKey))
};