mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-05 15:50:17 +02:00
peer: print warning if selfPolicy not found
This commit is contained in:
6
peer.go
6
peer.go
@@ -396,10 +396,14 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) error {
|
|||||||
TimeLockDelta: uint32(selfPolicy.TimeLockDelta),
|
TimeLockDelta: uint32(selfPolicy.TimeLockDelta),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
peerLog.Warnf("Unable to find our forwarding policy "+
|
||||||
|
"for channel %v, using default values",
|
||||||
|
chanPoint)
|
||||||
forwardingPolicy = &p.server.cc.routingPolicy
|
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
|
// Register this new channel link with the HTLC Switch. This is
|
||||||
// necessary to properly route multi-hop payments, and forward
|
// necessary to properly route multi-hop payments, and forward
|
||||||
|
Reference in New Issue
Block a user