aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-03-21 14:45:58 +0200
committerRiccardo Spagni <ric@spagni.net>2019-03-21 14:45:58 +0200
commit5e03bd06c1aa32c1f7773cdbea1505a78213fad5 (patch)
tree60d2cfa27f26bb63399a2b861bd50de954aaec01 /src/simplewallet
parentMerge pull request #5213 (diff)
parentwallet2: key image import fixes (diff)
downloadmonero-5e03bd06c1aa32c1f7773cdbea1505a78213fad5.tar.xz
Merge pull request #5235
c6a70af8 wallet2: key image import fixes (moneromooo-monero)
Diffstat (limited to 'src/simplewallet')
-rw-r--r--src/simplewallet/simplewallet.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index b8f790d69..07900858e 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -8657,13 +8657,8 @@ bool simple_wallet::import_key_images(const std::vector<std::string> &args)
{
uint64_t spent = 0, unspent = 0;
uint64_t height = m_wallet->import_key_images(filename, spent, unspent);
- if (height > 0)
- {
- success_msg_writer() << "Signed key images imported to height " << height << ", "
- << print_money(spent) << " spent, " << print_money(unspent) << " unspent";
- } else {
- fail_msg_writer() << "Failed to import key images";
- }
+ success_msg_writer() << "Signed key images imported to height " << height << ", "
+ << print_money(spent) << " spent, " << print_money(unspent) << " unspent";
}
catch (const std::exception &e)
{