[monero-project/monero] [WalletAPI] Allow query if Wallet is on hardware (#4266)

stoffu commented on this pull request.

Looks good to me

> @@ -640,6 +640,11 @@ bool WalletImpl::recoverFromDevice(const std::string &path, const std::string &p
return true;

+Wallet::Device WalletImpl::keyOnDevice() const
+ return static_cast(m_wallet->key_on_device());

Can you remove the extra tab inserted to the front of this line?

> @@ -167,6 +167,14 @@ bool WalletManagerImpl::verifyWalletPassword(const std::string &keys_file_name,
return tools::wallet2::verify_password(keys_file_name, password, no_spend_key, hw::get_device(«default»), kdf_rounds);

+bool WalletManagerImpl::queryWalletHardware(Wallet::Device& device_type, const std::string &keys_file_name, const std::string &password, uint64_t kdf_rounds) const
+ hw::device::device_type type;

Extra tab