routing/router: nil path pubkeys before spewing

This commit is contained in:
Conner Fromknecht committed 2019-05-14 20:32:58 -07:00
1 parent f8c824fb1d
commit 4d26e90ef3
1 file changed
+5 -1
+5 -1
View File
@@ -1405,7 +1405,11 @@ func generateSphinxPacket(rt *route.Route, paymentHash []byte) ([]byte,
log.Tracef("Constructed per-hop payloads for payment_hash=%x: %v", log.Tracef("Constructed per-hop payloads for payment_hash=%x: %v",
paymentHash[:], newLogClosure(func() string { 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)
}), }),
) )