routing: check to see if pubkey is nil before logging in sendPayment
In this commit, we now need to check to see if the pubkey is nil as if the user specified a set of manual routes, then the dest pubkey would be empty.
This commit is contained in:
parent
0113035f6d
commit
eb65b0cd5a
@ -1584,7 +1584,10 @@ func (r *ChannelRouter) sendPayment(payment *LightningPayment,
|
||||
newLogClosure(func() string {
|
||||
// Remove the public key curve parameters when logging
|
||||
// the route to prevent spamming the logs.
|
||||
if payment.Target != nil {
|
||||
payment.Target.Curve = nil
|
||||
}
|
||||
|
||||
for _, routeHint := range payment.RouteHints {
|
||||
for _, hopHint := range routeHint {
|
||||
hopHint.NodeID.Curve = nil
|
||||
|
Loading…
Reference in New Issue
Block a user