Add empty addresses when existing ones get used

This commit is contained in:
Aditya Kulkarni
2019-11-17 20:57:12 -08:00
parent 165c22e39e
commit 89fbe097da
3 changed files with 100 additions and 17 deletions

View File

@@ -852,6 +852,10 @@ impl LightClient {
}
pub fn do_rescan(&self) -> Result<JsonValue, String> {
if !self.wallet.read().unwrap().is_unlocked_for_spending() {
warn!("Wallet is locked, new HD addresses won't be added!");
}
info!("Rescan starting");
self.clear_state();