LN-Zap / zap-iOS

Zap Wallet - Native iOS lightning wallet focused on user experience and ease of use ⚡️
http://zaphq.io
MIT License
181 stars 47 forks source link

restart recovery if it couldn't be completed #304

Open ottosuess opened 5 years ago

ottosuess commented 5 years ago

If the rescan wasn't able to complete fully (lnd was shutdown for example), then from lncli unlock, it's possible to restart the rescan from where it left off with the --recovery-window argument

lnd apparently doesn't remember that it was doing a rescan. so when the app gets shutdown before the rescan is completed we have to restart it on next app start.

right now that's not possible because we have no way of knowing if the rescan was completed or not.

blocked by: lightningnetwork/lnd#3619