Merge pull request #3075 from cfromknecht/crtr-nil-path-curves

routing/router: nil path pubkeys before spewing
This commit is contained in:
Wilmer Paulino 2019-05-23 20:01:54 -07:00 committed by GitHub
commit 6e0084fec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1440,7 +1440,11 @@ func generateSphinxPacket(rt *route.Route, paymentHash []byte,
log.Tracef("Constructed per-hop payloads for payment_hash=%x: %v",
paymentHash[:], newLogClosure(func() string {
return spew.Sdump(sphinxPath[:sphinxPath.TrueRouteLength()])
path := sphinxPath[:sphinxPath.TrueRouteLength()]
for i := range path {
path[i].NodePub.Curve = nil
}
return spew.Sdump(path)
}),
)