github.com/decred/dcrlnd@v0.7.6/htlcswitch/hop/forwarding_info.go (about)

     1  package hop
     2  
     3  import (
     4  	"github.com/decred/dcrlnd/lnwire"
     5  )
     6  
     7  // ForwardingInfo contains all the information that is necessary to forward and
     8  // incoming HTLC to the next hop encoded within a valid HopIterator instance.
     9  // Forwarding links are to use this information to authenticate the information
    10  // received within the incoming HTLC, to ensure that the prior hop didn't
    11  // tamper with the end-to-end routing information at all.
    12  type ForwardingInfo struct {
    13  	// Network is the target blockchain network that the HTLC will travel
    14  	// over next.
    15  	Network Network
    16  
    17  	// NextHop is the channel ID of the next hop. The received HTLC should
    18  	// be forwarded to this particular channel in order to continue the
    19  	// end-to-end route.
    20  	NextHop lnwire.ShortChannelID
    21  
    22  	// AmountToForward is the amount of milli-satoshis that the receiving
    23  	// node should forward to the next hop.
    24  	AmountToForward lnwire.MilliAtom
    25  
    26  	// OutgoingCTLV is the specified value of the CTLV timelock to be used
    27  	// in the outgoing HTLC.
    28  	OutgoingCTLV uint32
    29  }