rpcserver: don't error out in ListChannels if unable to retrieve chanID

This commit is contained in:
Olaoluwa Osuntokun 2017-01-07 19:19:24 -08:00
parent d046efb502
commit 219c79e726
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -718,10 +718,8 @@ func (r *rpcServer) ListChannels(ctx context.Context,
// With the channel point known, retrieve the network channel // With the channel point known, retrieve the network channel
// ID from the database. // ID from the database.
chanID, err := graph.ChannelID(chanPoint) var chanID uint64
if err != nil { chanID, _ = graph.ChannelID(chanPoint)
return nil, err
}
channel := &lnrpc.ActiveChannel{ channel := &lnrpc.ActiveChannel{
RemotePubkey: nodeID, RemotePubkey: nodeID,