mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-20 02:27:21 +01:00
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",
|
||||
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