From 291232f0c3ecd288e850ce45d1fcb1f15832795b Mon Sep 17 00:00:00 2001 From: Andrey Samokhvalov Date: Sun, 9 Jul 2017 02:21:25 +0300 Subject: [PATCH] htlcswicth: fix deadlock After addition of the channel reestablish message exchange we couldn't use the Bandwidth() function, at least in the test framework. --- htlcswitch/switch.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htlcswitch/switch.go b/htlcswitch/switch.go index e31af97d1..3705d8b06 100644 --- a/htlcswitch/switch.go +++ b/htlcswitch/switch.go @@ -878,9 +878,8 @@ func (s *Switch) addLink(link ChannelLink) error { return err } - log.Infof("Added channel link with chan_id=%v, short_chan_id=(%v), "+ - "bandwidth=%v", link.ChanID(), spew.Sdump(link.ShortChanID()), - link.Bandwidth()) + log.Infof("Added channel link with chan_id=%v, short_chan_id=(%v)", + link.ChanID(), spew.Sdump(link.ShortChanID())) return nil }