Versions in this module Expand all Collapse all v0 v0.12.2 Mar 18, 2021 Changes in this version + const VertexSize + var ErrAMPMissingMPP = errors.New("cannot send AMP without MPP record") + var ErrIntermediateMPPHop = errors.New("cannot send MPP to intermediate") + var ErrMaxRouteHopsExceeded = fmt.Errorf("route has too many hops") + var ErrNoRouteHopsProvided = fmt.Errorf("empty route hops provided") + type Hop struct + AMP *record.AMP + AmtToForward lnwire.MilliSatoshi + ChannelID uint64 + CustomRecords record.CustomSet + LegacyPayload bool + MPP *record.MPP + OutgoingTimeLock uint32 + PubKeyBytes Vertex + func (h *Hop) Copy() *Hop + func (h *Hop) PackHopPayload(w io.Writer, nextChanID uint64) error + func (h *Hop) PayloadSize(nextChanID uint64) uint64 + type Route struct + Hops []*Hop + SourcePubKey Vertex + TotalAmount lnwire.MilliSatoshi + TotalTimeLock uint32 + func NewRouteFromHops(amtToSend lnwire.MilliSatoshi, timeLock uint32, sourceVertex Vertex, ...) (*Route, error) + func (r *Route) Copy() *Route + func (r *Route) FinalHop() *Hop + func (r *Route) HopFee(hopIndex int) lnwire.MilliSatoshi + func (r *Route) ReceiverAmt() lnwire.MilliSatoshi + func (r *Route) String() string + func (r *Route) ToSphinxPath() (*sphinx.PaymentPath, error) + func (r *Route) TotalFees() lnwire.MilliSatoshi + type Vertex [VertexSize]byte + func NewVertex(pub *btcec.PublicKey) Vertex + func NewVertexFromBytes(b []byte) (Vertex, error) + func NewVertexFromStr(v string) (Vertex, error) + func (v Vertex) String() string