mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-18 05:24:25 +01:00
fix: consider only confirmed txs for wallet balance (#664)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user