Skip to content

Commit

Permalink
improved pending channel display
Browse files Browse the repository at this point in the history
  • Loading branch information
ardevd committed Feb 14, 2024
1 parent 5d3490a commit 6410187
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/lnd/pending_channel.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package lnd

import (
"fmt"

"github.com/btcsuite/btcd/btcutil"
)

Expand Down Expand Up @@ -41,7 +43,8 @@ func (c PendingChannel) Description() string {
case CooperativeClosure:
return "Closing"
case ForceClosure:
return "Force Closing"
return fmt.Sprintf("Force closing (%d sats in limbo)",
int(c.LimboBalance.ToUnit(btcutil.AmountSatoshi)))
}

return ""
Expand Down

0 comments on commit 6410187

Please sign in to comment.