diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-04-24 22:38:36 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-04-24 22:38:36 +0200 |
commit | edcb0cfff2434d4236b705d975cb364f2d019954 (patch) | |
tree | 8581550282731b932cb9233e7519a8a77b0761e4 /src/wallet | |
parent | Merge pull request #5474 (diff) | |
parent | wallet: fix key image computation signaling to the device (diff) | |
download | monero-edcb0cfff2434d4236b705d975cb364f2d019954.tar.xz |
Merge pull request #5477
97e1c927 wallet: fix key image computation signaling to the device (Dusan Klinec)
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 831166d5f..77b895abf 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3129,6 +3129,7 @@ void wallet2::refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blo } }); + auto scope_exit_handler_hwdev = epee::misc_utils::create_scope_leave_handler([&](){hwdev.computing_key_images(false);}); bool first = true; while(m_run.load(std::memory_order_relaxed)) { @@ -3254,7 +3255,6 @@ void wallet2::refresh(bool trusted_daemon, uint64_t start_height, uint64_t & blo LOG_PRINT_L1("Failed to check pending transactions"); } - hwdev.computing_key_images(false); m_first_refresh_done = true; LOG_PRINT_L1("Refresh done, blocks received: " << blocks_fetched << ", balance (all accounts): " << print_money(balance_all()) << ", unlocked: " << print_money(unlocked_balance_all())); |