Skip to content

Commit

Permalink
fix: re-add pending balance for LightningBalanceClaimableAwaitingConf…
Browse files Browse the repository at this point in the history
…irmations

(if the user force closes from their side this will show until the timelock ends)
  • Loading branch information
rolznz committed Nov 28, 2024
1 parent 0063bf0 commit 40b5dc5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lnclient/ldk/ldk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1077,8 +1077,7 @@ func (ls *LDKService) GetOnchainBalance(ctx context.Context) (*lnclient.OnchainB
case ldk_node.LightningBalanceClaimableOnChannelClose:
increasePendingBalance(balanceType.ChannelId, balanceType.AmountSatoshis)
case ldk_node.LightningBalanceClaimableAwaitingConfirmations:
// this will show in the total balance (as incoming).
// increasePendingBalance(balanceType.ChannelId, balanceType.AmountSatoshis)
increasePendingBalance(balanceType.ChannelId, balanceType.AmountSatoshis)
case ldk_node.LightningBalanceContentiousClaimable:
increasePendingBalance(balanceType.ChannelId, balanceType.AmountSatoshis)
case ldk_node.LightningBalanceMaybeTimeoutClaimableHtlc:
Expand Down

0 comments on commit 40b5dc5

Please sign in to comment.