diff options
| author | Riccardo Spagni <ric@spagni.net> | 2019-03-21 14:45:58 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2019-03-21 14:45:58 +0200 |
| commit | 5e03bd06c1aa32c1f7773cdbea1505a78213fad5 (patch) | |
| tree | 60d2cfa27f26bb63399a2b861bd50de954aaec01 /src/simplewallet/simplewallet.cpp | |
| parent | f9b1c4f962152f50fbfb96013dfae3c161acd3cd (diff) | |
| parent | c6a70af86a4a9e6eeca340f80634c1c09b26a0eb (diff) | |
| download | monzero-core-5e03bd06c1aa32c1f7773cdbea1505a78213fad5.tar.gz monzero-core-5e03bd06c1aa32c1f7773cdbea1505a78213fad5.tar.xz monzero-core-5e03bd06c1aa32c1f7773cdbea1505a78213fad5.zip | |
Merge pull request #5235
c6a70af8 wallet2: key image import fixes (moneromooo-monero)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
| -rw-r--r-- | src/simplewallet/simplewallet.cpp | 9 |
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) { |
