rpc: populate missing fields for waiting close channels
This commit is contained in:
parent
81cb3cb739
commit
d7364d0f28
11
rpcserver.go
11
rpcserver.go
@ -2356,10 +2356,13 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
|
|||||||
pub := waitingClose.IdentityPub.SerializeCompressed()
|
pub := waitingClose.IdentityPub.SerializeCompressed()
|
||||||
chanPoint := waitingClose.FundingOutpoint
|
chanPoint := waitingClose.FundingOutpoint
|
||||||
channel := &lnrpc.PendingChannelsResponse_PendingChannel{
|
channel := &lnrpc.PendingChannelsResponse_PendingChannel{
|
||||||
RemoteNodePub: hex.EncodeToString(pub),
|
RemoteNodePub: hex.EncodeToString(pub),
|
||||||
ChannelPoint: chanPoint.String(),
|
ChannelPoint: chanPoint.String(),
|
||||||
Capacity: int64(waitingClose.Capacity),
|
Capacity: int64(waitingClose.Capacity),
|
||||||
LocalBalance: int64(waitingClose.LocalCommitment.LocalBalance.ToSatoshis()),
|
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
|
// A close tx has been broadcasted, all our balance will be in
|
||||||
|
Loading…
Reference in New Issue
Block a user