Skip to content

Commit

Permalink
unsettledLocalBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
boufni95 committed Apr 29, 2024
1 parent e7fdfb1 commit a0dd98e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/main/watchdog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ export class Watchdog {
const channelsBalance = await this.lnd.GetChannelBalance()
getLogger({ appName: "debugLndBalancev3" })({ w: walletBalance, c: channelsBalance, u: usersTotal })
const localChannelsBalance = Number(channelsBalance.localBalance?.sat || 0)
return Number(walletBalance.confirmedBalance) + localChannelsBalance
const unsettledLocalBalance = Number(channelsBalance.unsettledLocalBalance?.sat || 0)
return Number(walletBalance.confirmedBalance) + localChannelsBalance + unsettledLocalBalance
}

checkBalanceUpdate = (deltaLnd: number, deltaUsers: number) => {
Expand Down

0 comments on commit a0dd98e

Please sign in to comment.