Enum lightning::events::HTLCDestination
source · pub enum HTLCDestination {
NextHopChannel {
node_id: Option<PublicKey>,
channel_id: ChannelId,
},
UnknownNextHop {
requested_forward_scid: u64,
},
InvalidForward {
requested_forward_scid: u64,
},
FailedPayment {
payment_hash: PaymentHash,
},
}
Expand description
Intended destination of a failed HTLC as indicated in Event::HTLCHandlingFailed
.
Variants§
NextHopChannel
Fields
We tried forwarding to a channel but failed to do so. An example of such an instance is when there is insufficient capacity in our outbound channel.
UnknownNextHop
Scenario where we are unsure of the next node to forward the HTLC to.
InvalidForward
We couldn’t forward to the outgoing scid. An example would be attempting to send a duplicate intercept HTLC.
FailedPayment
Fields
§
payment_hash: PaymentHash
The payment hash of the payment we attempted to process.
Failure scenario where an HTLC may have been forwarded to be intended for us, but is invalid for some reason, so we reject it.
Some of the reasons may include:
- HTLC Timeouts
- Excess HTLCs for a payment that we have already fully received, over-paying for the payment,
- The counterparty node modified the HTLC in transit,
- A probing attack where an intermediary node is trying to detect if we are the ultimate recipient for a payment.
Trait Implementations§
source§impl Clone for HTLCDestination
impl Clone for HTLCDestination
source§fn clone(&self) -> HTLCDestination
fn clone(&self) -> HTLCDestination
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HTLCDestination
impl Debug for HTLCDestination
source§impl MaybeReadable for HTLCDestination
impl MaybeReadable for HTLCDestination
source§impl PartialEq for HTLCDestination
impl PartialEq for HTLCDestination
source§fn eq(&self, other: &HTLCDestination) -> bool
fn eq(&self, other: &HTLCDestination) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Writeable for HTLCDestination
impl Writeable for HTLCDestination
impl Eq for HTLCDestination
impl StructuralEq for HTLCDestination
impl StructuralPartialEq for HTLCDestination
Auto Trait Implementations§
impl RefUnwindSafe for HTLCDestination
impl Send for HTLCDestination
impl Sync for HTLCDestination
impl Unpin for HTLCDestination
impl UnwindSafe for HTLCDestination
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more