aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-12-07 13:56:53 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-12-07 13:57:26 +0000
commita6a2ad6cacb23c39dbaa6b02ef6b80cfe1ffa859 (patch)
treea00422365894c419ac4f483aa75570ae896b2825 /src/simplewallet/simplewallet.cpp
parentMerge pull request #6174 (diff)
downloadmonero-a6a2ad6cacb23c39dbaa6b02ef6b80cfe1ffa859.tar.xz
simplewallet: set manual refresh mode in rescan_bc
This ensures we get asked for the password if needed
Diffstat (limited to '')
-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 ea8f6f2f5..3f5eec691 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -8786,6 +8786,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);
}
//----------------------------------------------------------------------------------------------------