mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 15:41:44 +02:00
wallet_api: reject transaction file signing with hardware wallets
Reported by zkao, a tool by zkSecurity
This commit is contained in:
@@ -76,6 +76,12 @@ bool UnsignedTransactionImpl::sign(const std::string &signedFileName)
|
||||
m_status = Status_Error;
|
||||
return false;
|
||||
}
|
||||
if(m_wallet.m_wallet->key_on_device())
|
||||
{
|
||||
m_errorString = tr("Command not supported by hardware wallet");
|
||||
m_status = Status_Error;
|
||||
return false;
|
||||
}
|
||||
std::vector<tools::wallet2::pending_tx> ptx;
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user