mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
rpcserver: add remote balance for pending force close
This commit is contained in:
parent
22607a1c53
commit
eb11d4866f
1 changed files with 4 additions and 0 deletions
|
@ -3317,6 +3317,10 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
|
|||
}
|
||||
channel.NumForwardingPackages = int64(len(fwdPkgs))
|
||||
|
||||
channel.RemoteBalance = int64(
|
||||
historical.LocalCommitment.RemoteBalance.ToSatoshis(),
|
||||
)
|
||||
|
||||
// If the error is non-nil, and not due to older versions of lnd
|
||||
// not persisting historical channels, return it.
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue