rpcserver: add remote balance for pending force close

This commit is contained in:
yyforyongyu 2021-11-05 01:20:14 +08:00
parent 22607a1c53
commit eb11d4866f
No known key found for this signature in database
GPG key ID: 9BCD95C4FF296868

View file

@ -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: