Package org.ldk.structs
Class Event.PaymentPathFailed
- java.lang.Object
-
- org.ldk.structs.Event
-
- org.ldk.structs.Event.PaymentPathFailed
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ldk.structs.Event
Event.ChannelClosed, Event.FundingGenerationReady, Event.PaymentForwarded, Event.PaymentPathFailed, Event.PaymentReceived, Event.PaymentSent, Event.PendingHTLCsForwardable, Event.SpendableOutputs
-
-
Field Summary
Fields Modifier and Type Field Description boolean
all_paths_failed
For both single-path and multi-path payments, this is set if all paths of the payment have failed.Option_NetworkUpdateZ
network_update
Any failure information conveyed via the Onion return packet by a node along the failed payment route.RouteHop[]
path
The payment path that failed.byte[]
payment_hash
The hash which was given to ChannelManager::send_payment.boolean
rejected_by_dest
Indicates the payment was rejected for some reason by the recipient.
-
Method Summary
-
Methods inherited from class org.ldk.structs.Event
channel_closed, clone, finalize, funding_generation_ready, payment_forwarded, payment_path_failed, payment_received, payment_sent, pending_htlcs_forwardable, spendable_outputs, write
-
-
-
-
Field Detail
-
payment_hash
public final byte[] payment_hash
The hash which was given to ChannelManager::send_payment.
-
rejected_by_dest
public final boolean rejected_by_dest
Indicates the payment was rejected for some reason by the recipient. This implies that the payment has failed, not just the route in question. If this is not set, you may retry the payment via a different route.
-
network_update
public final Option_NetworkUpdateZ network_update
Any failure information conveyed via the Onion return packet by a node along the failed payment route. Should be applied to the [`NetworkGraph`] so that routing decisions can take into account the update. [`NetGraphMsgHandler`] is capable of doing this. [`NetworkGraph`]: crate::routing::network_graph::NetworkGraph [`NetGraphMsgHandler`]: crate::routing::network_graph::NetGraphMsgHandler
-
all_paths_failed
public final boolean all_paths_failed
For both single-path and multi-path payments, this is set if all paths of the payment have failed. This will be set to false if (1) this is an MPP payment and (2) other parts of the larger MPP payment were still in flight when this event was generated.
-
path
public final RouteHop[] path
The payment path that failed.
-
-