rpcserver: add missing channelbalance log

This commit is contained in:
Conner Fromknecht committed 2019-06-13 19:54:20 -07:00
1 parent 985ac7f5b7
commit 8ab56b2a5c
1 file changed
+3
+3
View File
@@ -2173,6 +2173,9 @@ func (r *rpcServer) ChannelBalance(ctx context.Context,
pendingOpenBalance += channel.LocalCommitment.LocalBalance.ToSatoshis()
}
rpcsLog.Debugf("[channelbalance] balance=%v pending-open=%v",
balance, pendingOpenBalance)
return &lnrpc.ChannelBalanceResponse{
Balance: int64(balance),
PendingOpenBalance: int64(pendingOpenBalance),