diff options
author | tobtoht <thotbot@protonmail.com> | 2021-07-13 19:01:55 +0200 |
---|---|---|
committer | selsta <selsta@sent.at> | 2021-08-07 03:04:24 +0200 |
commit | 94bad34c26c8da8e727dfb991f01ebb0cb12c014 (patch) | |
tree | 76d9b3e4ac1943d3f1bc375376a5fc3693ab5e5b /src/wallet/wallet2.cpp | |
parent | ledger: don't lock for software device (diff) | |
download | monero-94bad34c26c8da8e727dfb991f01ebb0cb12c014.tar.xz |
wallet2: Don't auto lock device on process parsed blocks
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 61c2b705b..d5befdaaf 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -2734,9 +2734,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) |