Class Event.PaymentFailed

  • Enclosing class:
    Event

    public static final class Event.PaymentFailed
    extends Event
    Indicates an outbound payment failed. Individual [`Event::PaymentPathFailed`] events provide failure information for each path attempt in the payment, including retries. This event is provided once there are no further pending HTLCs for the payment and the payment is no longer retryable, due either to the [`Retry`] provided or [`ChannelManager::abandon_payment`] having been called for the corresponding payment. In exceedingly rare cases, it is possible that an [`Event::PaymentFailed`] is generated for a payment after an [`Event::PaymentSent`] event for this same payment has already been received and processed. In this case, the [`Event::PaymentFailed`] event MUST be ignored, and the payment MUST be treated as having succeeded. [`Retry`]: crate::ln::channelmanager::Retry [`ChannelManager::abandon_payment`]: crate::ln::channelmanager::ChannelManager::abandon_payment
    • Field Detail

      • payment_id

        public final byte[] payment_id
        The `payment_id` passed to [`ChannelManager::send_payment`]. [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
      • payment_hash

        public final byte[] payment_hash
        The hash that was given to [`ChannelManager::send_payment`]. [`ChannelManager::send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
      • reason

        public final Option_PaymentFailureReasonZ reason
        The reason the payment failed. This is only `None` for events generated or serialized by versions prior to 0.0.115.