wallet: don't require device interaction for getAddressSafe

This commit is contained in:
tobtoht 2024-03-23 23:16:57 +01:00
parent 72941f517c
commit 4f49d75eda
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -222,7 +222,7 @@ QString Wallet::getAddressSafe(quint32 accountIndex, quint32 addressIndex, bool
// subaddress public spendkey (Di) = Hs(secret viewkey || subaddress index)G + primary address public spendkey (B) // subaddress public spendkey (Di) = Hs(secret viewkey || subaddress index)G + primary address public spendkey (B)
// subaddress public viewkey (Ci) = D * secret viewkey (a) // subaddress public viewkey (Ci) = D * secret viewkey (a)
if (!m_wallet2->verify_keys()) { if (m_wallet2->get_device_type() == hw::device::SOFTWARE && !m_wallet2->verify_keys()) {
reason = "Unable to verify viewkey"; reason = "Unable to verify viewkey";
return {}; return {};
} }