simplewallet: set manual refresh mode in rescan_bc

This ensures we get asked for the password if needed
This commit is contained in:
moneromooo-monero 2019-12-07 13:56:53 +00:00
parent 411f1b0ee3
commit a6a2ad6cac
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
//----------------------------------------------------------------------------------------------------