From c8bf521c75f509684a98dddab7a2d40fb517df01 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 14 Apr 2017 11:48:04 -0700 Subject: [PATCH] routing: display channel capacity in info logging message --- routing/router.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/routing/router.go b/routing/router.go index c80aef194..d409458e9 100644 --- a/routing/router.go +++ b/routing/router.go @@ -544,9 +544,7 @@ func (r *ChannelRouter) processUpdate(msg interface{}) error { if err != nil && err != channeldb.ErrGraphNoEdgesFound { return errors.Errorf("unable to check for edge "+ "existence: %v", err) - } else if exists { - return newErrf(ErrIgnored, "Ignoring msg for known "+ "chan_id=%v", msg.ChannelID) } @@ -604,10 +602,11 @@ func (r *ChannelRouter) processUpdate(msg interface{}) error { invalidateCache = true log.Infof("New channel discovered! Link "+ - "connects %x and %x with ChannelPoint(%v), chan_id=%v", + "connects %x and %x with ChannelPoint(%v): "+ + "chan_id=%v, capacity=%v", msg.NodeKey1.SerializeCompressed(), msg.NodeKey2.SerializeCompressed(), - fundingPoint, msg.ChannelID) + fundingPoint, msg.ChannelID, msg.Capacity) case *channeldb.ChannelEdgePolicy: channelID := lnwire.NewShortChanIDFromInt(msg.ChannelID)