From 4d26e90ef3546c15dc18e1ae5558d9afbcfe350f Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 13 May 2019 12:55:15 -0500 Subject: [PATCH] routing/router: nil path pubkeys before spewing --- routing/router.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/routing/router.go b/routing/router.go index 5ca73e8b..95b00daa 100644 --- a/routing/router.go +++ b/routing/router.go @@ -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) }), )