mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-07-22 12:35:49 +00:00
b3714d3b79
SELECT * FROM chains had no ORDER BY - SQLite gives no ordering guarantee for that, so registration/connection order across ~98 chains was effectively unpredictable per run. The merged chains.json lists Pezkuwi's own chains first (wallet-utils' merge_chains()), and CollectionDiffer's findDiff()/Room's batch insert both preserve that order on first sync, so ordering by rowid (insertion order) makes Pezkuwi's own chains reliably register and start connecting first/early, instead of being interleaved unpredictably among ~90+ Nova-inherited chains where they could end up processed dead last - observed directly: a fresh install took 45+ seconds without a single Pezkuwi-related registration/connection attempt. No user should wait minutes for their own wallet's native chain to even start syncing after install, regardless of whether the eventual outcome is correct.