fix(amm): evict stale accounts before forced reads

This commit is contained in:
Ricardo Guilherme Schmidt
2026-07-18 19:55:15 -03:00
parent d7f13de041
commit 9a15b33d23
2 changed files with 58 additions and 2 deletions
+2
View File
@@ -155,6 +155,8 @@ void SequencerClient::readAccount(const QString& accountId,
});
return;
}
if (forceRefresh)
m_cache.remove(accountId);
if (!forceRefresh && m_cache.contains(accountId)) {
const WalletAccountRead cached = m_cache.value(accountId);
QTimer::singleShot(0, this,