Skip to content

Commit

Permalink
use exported function to get the self node public key
Browse files Browse the repository at this point in the history
  • Loading branch information
roeierez authored and JssDWt committed Jul 24, 2023
1 parent 52c0c07 commit 06d039b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion channeldb/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -1871,7 +1871,11 @@ func (c *ChannelGraph) HighestChanID() (uint64, error) {
if err != nil {
return err
}
isOurChannel := pk1 != nil && selfNode.pubKey.IsEqual(pk1) || pk2 != nil && selfNode.pubKey.IsEqual(pk2)
selfPubkey, err := selfNode.PubKey()
if err != nil {
return err
}
isOurChannel := pk1 != nil && selfPubkey.IsEqual(pk1) || pk2 != nil && selfPubkey.IsEqual(pk2)
if !aliasmgr.IsAlias(id) && !isOurChannel {
cid = id.ToUint64()
break
Expand Down

0 comments on commit 06d039b

Please sign in to comment.