fix account sync discovery

This commit is contained in:
Sergio Chouhy 2026-06-17 00:07:28 -03:00
parent a724a8ece5
commit fc28a83191

View File

@ -175,6 +175,10 @@ void LEZWalletBackend::syncNextChunk()
const quint64 synced = static_cast<quint64>(lastSyncedBlock());
if (synced >= m_syncTarget) {
m_syncing = false;
// Sync may have discovered new private accounts (e.g. shielded transfers to a
// foreign NPK/VPK); re-list so the model picks them up without a restart.
QVariantList arr = m_logos->logos_execution_zone.list_accounts();
m_accountModel->replaceFromVariantList(arr);
fetchAndUpdateBlockHeights();
updateBalances();
return;