Add sync wallet on nectar's startup

This commit is contained in:
rishflab 2021-02-17 10:56:39 +11:00
parent 00e2b257c4
commit fe362d765b

View File

@ -140,6 +140,12 @@ async fn init_wallets(
private_key,
)
.await?;
bitcoin_wallet
.sync_wallet()
.await
.expect("Could not sync btc wallet");
let bitcoin_balance = bitcoin_wallet.balance().await?;
info!(
"Connection to Bitcoin wallet succeeded, balance: {}",