simplewallet: fix possible privacy leak in import_key_images()

This commit is contained in:
Jaquee 2017-08-11 11:16:30 +02:00
parent 181a008aa3
commit 20495b27e8

View File

@ -4509,6 +4509,12 @@ bool simple_wallet::export_key_images(const std::vector<std::string> &args)
//----------------------------------------------------------------------------------------------------
bool simple_wallet::import_key_images(const std::vector<std::string> &args)
{
if (!m_trusted_daemon)
{
fail_msg_writer() << tr("this command requires a trusted daemon. Enable with --trusted-daemon");
return true;
}
if (args.size() != 1)
{
fail_msg_writer() << tr("usage: import_key_images <filename>");