From 55ba5fe654ec25621612a47162b09900a5b291a3 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Mon, 10 Dec 2018 14:56:54 +0100 Subject: [PATCH] autopilot/graph: add addresses to memNode --- autopilot/graph.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/autopilot/graph.go b/autopilot/graph.go index 4fbd02960..5ee547378 100644 --- a/autopilot/graph.go +++ b/autopilot/graph.go @@ -335,6 +335,11 @@ func (m *memChannelGraph) addRandChannel(node1, node2 *btcec.PublicKey, if !ok { vertex1 = memNode{ pub: node1, + addrs: []net.Addr{ + &net.TCPAddr{ + IP: bytes.Repeat([]byte("a"), 16), + }, + }, } } } else { @@ -344,6 +349,11 @@ func (m *memChannelGraph) addRandChannel(node1, node2 *btcec.PublicKey, } vertex1 = memNode{ pub: newPub, + addrs: []net.Addr{ + &net.TCPAddr{ + IP: bytes.Repeat([]byte("a"), 16), + }, + }, } } @@ -352,6 +362,11 @@ func (m *memChannelGraph) addRandChannel(node1, node2 *btcec.PublicKey, if !ok { vertex2 = memNode{ pub: node2, + addrs: []net.Addr{ + &net.TCPAddr{ + IP: bytes.Repeat([]byte("a"), 16), + }, + }, } } } else { @@ -361,6 +376,11 @@ func (m *memChannelGraph) addRandChannel(node1, node2 *btcec.PublicKey, } vertex2 = memNode{ pub: newPub, + addrs: []net.Addr{ + &net.TCPAddr{ + IP: bytes.Repeat([]byte("a"), 16), + }, + }, } }