Skip to content

Commit

Permalink
wallet: don't require device interaction for getAddressSafe
Browse files Browse the repository at this point in the history
  • Loading branch information
tobtoht committed Mar 23, 2024
1 parent 72941f5 commit 4f49d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libwalletqt/Wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
}
Expand Down

0 comments on commit 4f49d75

Please sign in to comment.