aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-02-28 19:59:42 -0800
committerAlexander Blair <snipa@jagtech.io>2020-02-28 19:59:43 -0800
commitea6396ea66978125d6ee710ca0315f1069b4cc90 (patch)
tree4a317495c7a3ce91023dafc83e66e128105ecca7 /src/simplewallet/simplewallet.cpp
parentMerge pull request #6209 (diff)
parentsimplewallet: set manual refresh mode in rescan_bc (diff)
downloadmonero-ea6396ea66978125d6ee710ca0315f1069b4cc90.tar.xz
Merge pull request #6222
a6a2ad6c simplewallet: set manual refresh mode in rescan_bc (moneromooo-monero)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index 1a319c7c4..862edb4c0 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -8820,6 +8820,8 @@ bool simple_wallet::rescan_blockchain(const std::vector<std::string> &args_)
}
}
+ m_in_manual_refresh.store(true, std::memory_order_relaxed);
+ epee::misc_utils::auto_scope_leave_caller scope_exit_handler = epee::misc_utils::create_scope_leave_handler([&](){m_in_manual_refresh.store(false, std::memory_order_relaxed);});
return refresh_main(start_height, reset_type, true);
}
//----------------------------------------------------------------------------------------------------