Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: prevent from clearing wallet data after restart (tari-project#…
…1366) Description We've been clearing the wallet database on startup which forced scanning UTXOs from the tip 0 on every run. Scanning takes really long time each run: ``` DEBUG Scanning round completed up to height 84661 in 440.07s (2116869 outputs scanned, 1478 recovered with value 1479069.697509 T) ``` Clearing was done when we had issues with view keys. Since it's gone, we can keep wallet dir and support caching. How Has This Been Tested? --- I tested manually by running the app several times and watching wallet logs(base_layer.log) to check whether wallet uses previously scanned blocks. ``` Scanning round completed up to height 85291 in 301.62ms (70 outputs scanned, 0 recovered with value 0 µT) ``` I also played with displaying seed words and importing new wallets to ensure everything is doesn't break anything related to the view keys --------- Co-authored-by: Brian Pearce <[email protected]> Co-authored-by: brianp <[email protected]>
- Loading branch information