ChannelHop

data class ChannelHop(nodeId: PublicKey, nextNodeId: PublicKey, lastUpdate: ChannelUpdate) : Hop

A directed hop between two connected nodes using a specific channel.

Parameters

nodeId

id of the start node.

nextNodeId

id of the end node.

lastUpdate

last update of the channel used for the hop.

Constructors

ChannelHop
Link copied to clipboard
common
fun ChannelHop(nodeId: PublicKey, nextNodeId: PublicKey, lastUpdate: ChannelUpdate)

Functions

fee
Link copied to clipboard
common
open override fun fee(amount: MilliSatoshi): MilliSatoshi

Properties

cltvExpiryDelta
Link copied to clipboard
common
open override val cltvExpiryDelta: CltvExpiryDelta

Cltv delta required by the current hop.

lastUpdate
Link copied to clipboard
common
val lastUpdate: ChannelUpdate
nextNodeId
Link copied to clipboard
common
open override val nextNodeId: PublicKey
nodeId
Link copied to clipboard
common
open override val nodeId: PublicKey