wallet2: Don't auto lock device on process parsed blocks

remotes/1691602464505633909/tmp_refs/heads/wonerujo-v0.10.1
tobtoht 3 years ago committed by selsta
parent 3c23aca26b
commit 94bad34c26
Signed by untrusted user: selsta
GPG Key ID: 2EA0A99A8B07AE5E

@ -2734,9 +2734,8 @@ void wallet2::process_parsed_blocks(uint64_t start_height, const std::vector<cry
{ {
if (tx_cache_data[i].empty()) if (tx_cache_data[i].empty())
continue; continue;
tpool.submit(&waiter, [&hwdev, &gender, &tx_cache_data, i]() { tpool.submit(&waiter, [&gender, &tx_cache_data, i]() {
auto &slot = tx_cache_data[i]; auto &slot = tx_cache_data[i];
boost::unique_lock<hw::device> hwdev_lock(hwdev);
for (auto &iod: slot.primary) for (auto &iod: slot.primary)
gender(iod); gender(iod);
for (auto &iod: slot.additional) for (auto &iod: slot.additional)

Loading…
Cancel
Save