routing/router: nil path pubkeys before spewing

This commit is contained in:
Conner Fromknecht 2019-05-13 12:55:15 -05:00
parent f8c824fb1d
commit 4d26e90ef3
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -1405,7 +1405,11 @@ func generateSphinxPacket(rt *route.Route, paymentHash []byte) ([]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)
}),
)