mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-25 22:21:16 +00:00
fix(amm): evict stale accounts before forced reads
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user