check changes to balance and unlocked txs at end of sync

This commit is contained in:
woodser
2021-09-05 10:56:44 -04:00
parent bfb685611f
commit 49de7f2a9f
+5
View File
@@ -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();