mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-25 15:39:25 -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,
|
private_key,
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
bitcoin_wallet
|
||||||
|
.sync_wallet()
|
||||||
|
.await
|
||||||
|
.expect("Could not sync btc wallet");
|
||||||
|
|
||||||
let bitcoin_balance = bitcoin_wallet.balance().await?;
|
let bitcoin_balance = bitcoin_wallet.balance().await?;
|
||||||
info!(
|
info!(
|
||||||
"Connection to Bitcoin wallet succeeded, balance: {}",
|
"Connection to Bitcoin wallet succeeded, balance: {}",
|
||||||
|
Loading…
Reference in New Issue
Block a user