Skip to content

Commit

Permalink
Ignore edge keys without chanID
Browse files Browse the repository at this point in the history
  • Loading branch information
yaslama authored and JssDWt committed Aug 7, 2023
1 parent ed20a67 commit 39aeafc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion channeldb/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ func (c *ChannelGraph) getChannelMap(edges kvdb.RBucket) (

// Validate key length.
if len(k) != 33+8 {
return fmt.Errorf("invalid edge key %x encountered", k)
log.Warnf("invalid edge key %x encountered", k)
return nil
}

var key channelMapKey
Expand Down

0 comments on commit 39aeafc

Please sign in to comment.