Skip to content

Commit

Permalink
fix comparing pubkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
roeierez authored and JssDWt committed Jul 24, 2023
1 parent e070902 commit 52c0c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channeldb/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -1871,7 +1871,7 @@ func (c *ChannelGraph) HighestChanID() (uint64, error) {
if err != nil {
return err
}
isOurChannel := selfNode.pubKey.IsEqual(pk1) || selfNode.pubKey.IsEqual(pk2)
isOurChannel := pk1 != nil && selfNode.pubKey.IsEqual(pk1) || pk2 != nil && selfNode.pubKey.IsEqual(pk2)
if !aliasmgr.IsAlias(id) && !isOurChannel {
cid = id.ToUint64()
break
Expand Down

0 comments on commit 52c0c07

Please sign in to comment.