Skip to content

Commit

Permalink
fix cid shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
roeierez authored and JssDWt committed Jul 24, 2023
1 parent 06d039b commit ae386e7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions channeldb/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -1845,8 +1845,6 @@ func (c *ChannelGraph) HighestChanID() (uint64, error) {
// In order to find the highest chan ID, we'll fetch a cursor
// and use that to seek to the "end" of our known rage.
cidCursor := edgeIndex.ReadCursor()

cid := uint64(0)
lastChanID, _ := cidCursor.Last()
selfNode, err := c.SourceNode()
if err != nil {
Expand Down

0 comments on commit ae386e7

Please sign in to comment.