fix: consider only confirmed txs for wallet balance (#664)

This commit is contained in:
yse
2025-01-16 12:07:15 +01:00
committed by GitHub
parent 9a4360bf00
commit ffcdfdbac3

View File

@@ -2519,6 +2519,7 @@ impl LiquidSdk {
let transactions = self.onchain_wallet.transactions().await?;
let wallet_amount_sat = transactions
.into_iter()
.filter(|tx| tx.height.is_some())
.map(|tx| {
tx.balance
.into_iter()