mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-29 01:16:24 -05:00
Merge #206
206: Remove misplaced wallet sync call r=rishflab a=rishflab These bdk wallet sync calls must of gotten lost during a rebase. Removed the call in build TxLock and added one when nectar starts up Co-authored-by: rishflab <rishflab@hotmail.com>
This commit is contained in:
commit
48635156ad
@ -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: {}",
|
||||
|
@ -119,7 +119,6 @@ impl BuildTxLockPsbt for Wallet {
|
||||
output_amount: Amount,
|
||||
) -> Result<PartiallySignedTransaction> {
|
||||
tracing::debug!("building tx lock");
|
||||
self.sync_wallet().await?;
|
||||
let (psbt, _details) = self.inner.lock().await.create_tx(
|
||||
bdk::TxBuilder::with_recipients(vec![(
|
||||
output_address.script_pubkey(),
|
||||
|
Loading…
Reference in New Issue
Block a user