From 4f49d75eda72e387360f7ee7e80c2417abb51a5c Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sat, 23 Mar 2024 23:16:57 +0100 Subject: [PATCH] wallet: don't require device interaction for getAddressSafe --- src/libwalletqt/Wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 507b734..cb13329 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -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 {}; }