Post to worker thread in qt wallet when doing write tx's on io threads (#2256)
* Post to worker in qt wallet when doing write tx's * Remove unnecessary work post as it is already wrapped in a UI post
This commit is contained in:
parent
b796ec601f
commit
3b86ce6470
1 changed files with 4 additions and 2 deletions
|
|
@ -1411,9 +1411,11 @@ void nano_qt::wallet::update_connected ()
|
||||||
void nano_qt::wallet::empty_password ()
|
void nano_qt::wallet::empty_password ()
|
||||||
{
|
{
|
||||||
this->node.alarm.add (std::chrono::steady_clock::now () + std::chrono::seconds (3), [this]() {
|
this->node.alarm.add (std::chrono::steady_clock::now () + std::chrono::seconds (3), [this]() {
|
||||||
|
this->node.worker.push_task ([this]() {
|
||||||
auto transaction (wallet_m->wallets.tx_begin_write ());
|
auto transaction (wallet_m->wallets.tx_begin_write ());
|
||||||
wallet_m->enter_password (transaction, std::string (""));
|
wallet_m->enter_password (transaction, std::string (""));
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void nano_qt::wallet::change_rendering_ratio (nano::uint128_t const & rendering_ratio_a)
|
void nano_qt::wallet::change_rendering_ratio (nano::uint128_t const & rendering_ratio_a)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue