mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 07:31:35 +02:00
wallet_api: reject transaction file signing with hardware wallets
Reported by zkao, a tool by zkSecurity (cherry picked from commit 735e535adf2c3d7d4c159478747c144e2aea6a69)
This commit is contained in:
@@ -76,6 +76,12 @@ bool UnsignedTransactionImpl::sign(const std::string &signedFileName)
|
|||||||
m_status = Status_Error;
|
m_status = Status_Error;
|
||||||
return false;
|
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;
|
std::vector<tools::wallet2::pending_tx> ptx;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user