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

This commit is contained in:
Olaoluwa Osuntokun committed 2017-01-07 21:21:55 -08:00
1 parent d046efb502
commit 219c79e726
1 file changed
+2 -4
+2 -4
View File
@@ -718,10 +718,8 @@ func (r *rpcServer) ListChannels(ctx context.Context,
// With the channel point known, retrieve the network channel
// ID from the database.
chanID, err := graph.ChannelID(chanPoint)
if err != nil {
return nil, err
}
var chanID uint64
chanID, _ = graph.ChannelID(chanPoint)
channel := &lnrpc.ActiveChannel{
RemotePubkey: nodeID,