wallet: do not display daemon controlled text if untrusted

This commit is contained in:
moneromooo-monero 2018-12-30 01:32:20 +00:00
parent ed54ac8fdf
commit 9092fc4bfd
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 89 additions and 39 deletions

View file

@ -451,7 +451,7 @@ namespace
}
catch (const tools::error::tx_rejected& e)
{
fail_msg_writer() << (boost::format(sw::tr("transaction %s was rejected by daemon with status: ")) % get_transaction_hash(e.tx())) << e.status();
fail_msg_writer() << (boost::format(sw::tr("transaction %s was rejected by daemon")) % get_transaction_hash(e.tx()));
std::string reason = e.reason();
if (!reason.empty())
fail_msg_writer() << sw::tr("Reason: ") << reason;