Skip to content

Commit

Permalink
Merge pull request #2092 from get10101/feat/trusted-pending-balance
Browse files Browse the repository at this point in the history
feat: pending balance is good balance
  • Loading branch information
holzeis authored Feb 23, 2024
2 parents 8e90ba2 + a840c30 commit e795b91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Feat(webapp): Let user manually sync wallet history.
- Feat(webapp): Allow to close or force-close a channel.
- Feat(app): Count pending but trusted utxos to wallet balance.

## [1.8.11] - 2024-02-20

Expand Down
3 changes: 2 additions & 1 deletion mobile/native/src/ln_dlc/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ impl Node {
}

pub fn get_wallet_balances(&self) -> Result<Balances> {
let on_chain = self.inner.get_on_chain_balance()?.confirmed;
let on_chain_balance = self.inner.get_on_chain_balance()?;
let on_chain = on_chain_balance.confirmed + on_chain_balance.trusted_pending;

let off_chain = self.inner.get_dlc_channels_usable_balance()?;

Expand Down

0 comments on commit e795b91

Please sign in to comment.