]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
wallet: don't require device interaction for getAddressSafe
authortobtoht <tob@featherwallet.org>
Sat, 23 Mar 2024 22:16:57 +0000 (23:16 +0100)
committertobtoht <tob@featherwallet.org>
Sat, 23 Mar 2024 22:16:57 +0000 (23:16 +0100)
src/libwalletqt/Wallet.cpp

index 507b734c0ba654d31619b54a8ab396807c4cef37..cb1332955fbe6231bbaee401be8ac7a45228dad9 100644 (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 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";
         return {};
     }