fix mistaken commit

This commit is contained in:
Roei Erez
2024-06-06 15:53:19 +03:00
parent 36616ba0ee
commit f8a44ca878

View File

@@ -833,9 +833,7 @@ impl LiquidSdk {
self.persister.clone(),
self.swapper.clone(),
);
let txs = self.onchain_wallet.transactions().await?;
let num = txs.len();
for tx in txs {
for tx in self.onchain_wallet.transactions().await? {
let tx_id = tx.txid.to_string();
let is_tx_confirmed = tx.height.is_some();
let amount_sat = tx.balance.values().sum::<i64>();
@@ -852,15 +850,8 @@ impl LiquidSdk {
.update_swap_info(&swap.id, Failed, None, None, None)
.await?;
}
} else {
info!("*******Processing unconfirmed tx: {tx_id}");
}
print!(
"*******Got tx num: {num}: {tx_id} height: {:?} \n",
tx.height
);
self.persister.insert_or_update_payment(PaymentTxData {
tx_id,
timestamp: tx.timestamp,