From c214bea9db867a7ae756eb5d7fdcc2a83fb1b4d7 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 30 Aug 2018 20:41:12 -0700 Subject: [PATCH] autopilot/prefattach: set NodeID for selection candidates --- autopilot/prefattach.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autopilot/prefattach.go b/autopilot/prefattach.go index fd1913ed..4bf00c25 100644 --- a/autopilot/prefattach.go +++ b/autopilot/prefattach.go @@ -249,7 +249,8 @@ func (p *ConstrainedPrefAttachment) Select(self *btcec.PublicKey, g ChannelGraph X: pub.X, Y: pub.Y, }, - Addrs: selectedNode.Addrs(), + NodeID: NewNodeID(pub), + Addrs: selectedNode.Addrs(), }) // With the node selected, we'll add it to the set of visited