Merge pull request #11035

eeb8245 wallet_api: reject transaction file signing with hardware wallets (selsta)

ACKs: SNeedlewoods, jpk68
This commit is contained in:
tobtoht
2026-09-01 19:12:49 +00:00
+6
View File
@@ -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
{