rpc: populate missing fields for waiting close channels

This commit is contained in:
Wilmer Paulino 2019-09-03 14:25:03 -07:00
parent 81cb3cb739
commit d7364d0f28
No known key found for this signature in database
GPG Key ID: 6DF57B9F9514972F

@ -2360,6 +2360,9 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
ChannelPoint: chanPoint.String(),
Capacity: int64(waitingClose.Capacity),
LocalBalance: int64(waitingClose.LocalCommitment.LocalBalance.ToSatoshis()),
RemoteBalance: int64(waitingClose.LocalCommitment.RemoteBalance.ToSatoshis()),
LocalChanReserveSat: int64(waitingClose.LocalChanCfg.ChanReserve),
RemoteChanReserveSat: int64(waitingClose.RemoteChanCfg.ChanReserve),
}
// A close tx has been broadcasted, all our balance will be in