rpc: populate new initiator field in ListChannels response

This commit is contained in:
Olaoluwa Osuntokun 2019-01-14 17:26:49 -08:00
parent 5d0a371a7d
commit 114f0a8918
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

@ -2373,6 +2373,7 @@ func (r *rpcServer) ListChannels(ctx context.Context,
NumUpdates: localCommit.CommitHeight,
PendingHtlcs: make([]*lnrpc.HTLC, len(localCommit.Htlcs)),
CsvDelay: uint32(dbChannel.LocalChanCfg.CsvDelay),
Initiator: dbChannel.IsInitiator,
}
for i, htlc := range localCommit.Htlcs {