wallet_api: reconnectDevice

This commit is contained in:
tobtoht
2021-06-04 15:24:53 +02:00
parent 1c8e598172
commit f174a8f05f
3 changed files with 21 additions and 0 deletions

View File

@@ -2576,6 +2576,23 @@ void WalletImpl::deviceShowAddress(uint32_t accountIndex, uint32_t addressIndex,
m_wallet->device_show_address(accountIndex, addressIndex, payment_id_param);
}
bool WalletImpl::reconnectDevice()
{
clearStatus();
bool r;
try {
r = m_wallet->reconnect_device();
}
catch (const std::exception &e) {
LOG_ERROR(__FUNCTION__ << " error: " << e.what());
setStatusError(e.what());
return false;
}
return r;
}
} // namespace
namespace Bitmonero = Monero;