// NodeKeys returns a slice pointing to node keys that this route comprises of.
// The size of the returned slice will be TrueRouteLength().
NodeKeys returns a slice pointing to node keys that this route comprises of.
The size of the returned slice will be TrueRouteLength().
// NodeKeys returns a slice pointing to node keys that this route comprises of . // The size of the returned slice will be TrueRouteLength () .
func (p *PaymentPath) NodeKeys() []*btcec.PublicKey {
	var nodeKeys [NumMaxHops]*btcec.PublicKey
	routeLen := p.TrueRouteLength()
	for i := 0; i < routeLen; i++ {
		nodeKeys[i] = &p[i].NodePub
	}
	return nodeKeys[:routeLen]
}
func ( p * PaymentPath ) NodeKeys ( ) [ ] * btcec . PublicKey { var nodeKeys [ NumMaxHops ] * btcec . PublicKey routeLen := p . TrueRouteLength ( ) for i := 0 ; i < routeLen ; i ++ { nodeKeys [ i ] = & p [ i ] . NodePub } return nodeKeys [ : routeLen ] }
NodeKeys returns a slice pointing to node keys that this route comprises of.
NodeKeys returns a slice pointing to node keys that this route comprises of .