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 Apr 22, 2024
1 parent 3d52994 commit 0c34cee
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 0c34cee

Please sign in to comment.