seed not xpriv

This commit is contained in:
Kukks 2023-07-03 08:40:56 +02:00 committed by Dennis Reimann
parent 52770ec758
commit df9d6b9a40
No known key found for this signature in database
GPG key ID: 5009E1797F03F8D0

View file

@ -115,7 +115,7 @@ public class BtcPayAppController : Controller
private async Task<string?> GetSeed(ExplorerClient client, DerivationSchemeSettings derivation)
{
return derivation.IsHotWallet &&
await client.GetMetadataAsync<string>(derivation.AccountDerivation, WellknownMetadataKeys.MasterHDKey) is { } seed &&
await client.GetMetadataAsync<string>(derivation.AccountDerivation, WellknownMetadataKeys.Mnemonic) is { } seed &&
!string.IsNullOrEmpty(seed) ? seed : null;
}