]> Untitled Git - bdk-cli/commitdiff
[wallet] Refill the address pool whenever necessary
authorAlekos Filini <alekos.filini@gmail.com>
Thu, 6 Aug 2020 16:11:07 +0000 (18:11 +0200)
committerAlekos Filini <alekos.filini@gmail.com>
Thu, 6 Aug 2020 16:11:07 +0000 (18:11 +0200)
src/cli.rs

index 735c0af92a0ce53486c4fe4041b8ac9f757917da..d4e4578905700cbdc8da1e5e6140ee9ed7d3a3a9 100644 (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();