routing/router: nil path pubkeys before spewing
This commit is contained in:
parent
f8c824fb1d
commit
4d26e90ef3
@ -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)
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user