[wallet] Refill the address pool whenever necessary

This commit is contained in:
Alekos Filini
2020-08-06 18:11:07 +02:00
parent 7a23b2b558
commit b67bbeb202
2 changed files with 209 additions and 89 deletions

View File

@@ -291,7 +291,7 @@ where
if let Some(_sub_matches) = matches.subcommand_matches("get_new_address") {
Ok(Some(format!("{}", wallet.get_new_address()?)))
} else if let Some(_sub_matches) = matches.subcommand_matches("sync") {
maybe_await!(wallet.sync(None, None))?;
maybe_await!(wallet.sync(None))?;
Ok(None)
} else if let Some(_sub_matches) = matches.subcommand_matches("list_unspent") {
let mut res = String::new();