pub struct RouteHop {
pub pubkey: PublicKey,
pub node_features: NodeFeatures,
pub short_channel_id: u64,
pub channel_features: ChannelFeatures,
pub fee_msat: u64,
pub cltv_expiry_delta: u32,
}
Expand description
A hop in a route
Fields
pubkey: PublicKey
The node_id of the node at this hop.
node_features: NodeFeatures
The node_announcement features of the node at this hop. For the last hop, these may be amended to match the features present in the invoice this node generated.
short_channel_id: u64
The channel that should be used from the previous hop to reach this node.
channel_features: ChannelFeatures
The channel_announcement features of the channel that should be used from the previous hop to reach this node.
fee_msat: u64
The fee taken on this hop (for paying for the use of the next channel in the path). For the last hop, this should be the full value of the payment (might be more than requested if we had to match htlc_minimum_msat).
cltv_expiry_delta: u32
The CLTV delta added for this hop. For the last hop, this should be the full CLTV value expected at the destination, in excess of the current block height.
Trait Implementations
sourceimpl Writeable for RouteHop
impl Writeable for RouteHop
sourcefn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>
Writes self out to the given Writer
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
impl Eq for RouteHop
impl StructuralEq for RouteHop
impl StructuralPartialEq for RouteHop
Auto Trait Implementations
impl RefUnwindSafe for RouteHop
impl Send for RouteHop
impl Sync for RouteHop
impl Unpin for RouteHop
impl UnwindSafe for RouteHop
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more