aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authortobtoht <thotbot@protonmail.com>2021-07-13 19:01:55 +0200
committertobtoht <thotbot@protonmail.com>2021-07-14 13:02:54 +0200
commitf5eb2ce9688164ee8749b6a57919c10ab65cc36b (patch)
tree6bf69d536dd469beaa3ab6781ca2583621dcaa5b /src/wallet
parentMerge pull request #7764 (diff)
downloadmonero-f5eb2ce9688164ee8749b6a57919c10ab65cc36b.tar.xz
wallet2: Don't auto lock device on process parsed blocks
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/wallet2.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 05fe0a1ad..cb6dfd7d3 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -2773,9 +2773,8 @@ void wallet2::process_parsed_blocks(uint64_t start_height, const std::vector<cry
{
if (tx_cache_data[i].empty())
continue;
- tpool.submit(&waiter, [&hwdev, &gender, &tx_cache_data, i]() {
+ tpool.submit(&waiter, [&gender, &tx_cache_data, i]() {
auto &slot = tx_cache_data[i];
- boost::unique_lock<hw::device> hwdev_lock(hwdev);
for (auto &iod: slot.primary)
gender(iod);
for (auto &iod: slot.additional)