mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-25 07:29:32 -05:00
Add sync wallet on nectar's startup
This commit is contained in:
parent
00e2b257c4
commit
fe362d765b
@ -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: {}",
|
||||
|
Loading…
Reference in New Issue
Block a user