From 49de7f2a9fb79c2157a2b641a95ff64b6e1b9310 Mon Sep 17 00:00:00 2001 From: woodser Date: Sun, 5 Sep 2021 10:56:44 -0400 Subject: [PATCH] check changes to balance and unlocked txs at end of sync --- src/wallet/monero_wallet_full.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wallet/monero_wallet_full.cpp b/src/wallet/monero_wallet_full.cpp index 65659d9..29d5a90 100644 --- a/src/wallet/monero_wallet_full.cpp +++ b/src/wallet/monero_wallet_full.cpp @@ -739,6 +739,8 @@ namespace monero { void on_sync_end() { tools::threadpool::waiter waiter(*m_notification_pool); m_notification_pool->submit(&waiter, [this]() { + check_for_changed_balances(); + if (m_prev_locked_tx_hashes.size() > 0) check_for_changed_unlocked_txs(); m_sync_start_height = boost::none; m_sync_end_height = boost::none; }); @@ -803,6 +805,9 @@ namespace monero { // notify if balances changed check_for_changed_balances(); + // watch for unlock + m_prev_locked_tx_hashes.insert(tx->m_hash.get()); + // free memory output.reset(); tx.reset();