mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 13:23:29 +01:00
simplewallet: fix possible privacy leak in import_key_images()
This commit is contained in:
parent
181a008aa3
commit
20495b27e8
@ -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)
|
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)
|
if (args.size() != 1)
|
||||||
{
|
{
|
||||||
fail_msg_writer() << tr("usage: import_key_images <filename>");
|
fail_msg_writer() << tr("usage: import_key_images <filename>");
|
||||||
|
Loading…
Reference in New Issue
Block a user