Skip to content

Commit

Permalink
fix logic that finds peer id from scid.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Sep 19, 2022
1 parent 1bc8dbe commit dd0e684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/CLN.scala
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ class CLN(master: ChannelMaster) extends NodeInterface {
val peerFound =
List(chandata("source").str, chandata("destination").str)
.map(ByteVector.fromValidHex(_))
.find(id => id != master.node.publicKey)
.tap(ids => System.err.println(ids))
.find(_ != master.node.publicKey.value)

peerFound match {
case None =>
Expand Down

0 comments on commit dd0e684

Please sign in to comment.