From e9066c2d349a05e249bd375ea9258d31b1857189 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Wed, 22 Aug 2018 09:32:44 +0200 Subject: [PATCH] peer: print warning if selfPolicy not found --- peer.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/peer.go b/peer.go index df8529cf..a49a3cf7 100644 --- a/peer.go +++ b/peer.go @@ -396,10 +396,14 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) error { TimeLockDelta: uint32(selfPolicy.TimeLockDelta), } } else { + peerLog.Warnf("Unable to find our forwarding policy "+ + "for channel %v, using default values", + chanPoint) forwardingPolicy = &p.server.cc.routingPolicy } - peerLog.Tracef("Using link policy of: %v", spew.Sdump(forwardingPolicy)) + peerLog.Tracef("Using link policy of: %v", + spew.Sdump(forwardingPolicy)) // Register this new channel link with the HTLC Switch. This is // necessary to properly route multi-hop payments, and forward