rpc: populate new initiator field in ListChannels response

This commit is contained in:
Olaoluwa Osuntokun committed 2019-01-15 16:51:35 -08:00
1 parent 5d0a371a7d
commit 114f0a8918
1 file changed
+1
+1
View File
@@ -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 {