fix lnd: channel without ID

pull/8/head
Edouard Paris 5 years ago
parent 6f0cd4afd7
commit fa4de73813

@ -225,8 +225,8 @@ func (l Backend) ListChannels(ctx context.Context, opt ...options.Channel) ([]*m
func (l Backend) GetChannelInfo(ctx context.Context, channel *models.Channel) error {
l.logger.Debug("GetChannelInfo")
// If channel is opening node information cannot be retrieved.
if channel.Status == models.ChannelOpening {
// If channel does not have ID (pending), information cannot be retrieved
if channel.ID == 0 {
return nil
}

Loading…
Cancel
Save