+ /// Used to indicate that a channel_update should be broadcast to all peers.
+ ///
+ /// This event is handled by PeerManager::process_events if you are using a PeerManager.
+ BroadcastChannelUpdate {
+ /// The channel_update which should be sent.
+ msg: msgs::ChannelUpdate,
+ },
+
+ //Error handling
+ /// Broadcast an error downstream to be handled
+ ///
+ /// This event is handled by PeerManager::process_events if you are using a PeerManager.
+ HandleError {
+ /// The node_id of the node which should receive this message
+ node_id: PublicKey,
+ /// The action which should be taken.
+ action: Option<msgs::ErrorAction>
+ },
+ /// When a payment fails we may receive updates back from the hop where it failed. In such
+ /// cases this event is generated so that we can inform the router of this information.
+ ///
+ /// This event is handled by PeerManager::process_events if you are using a PeerManager.
+ PaymentFailureNetworkUpdate {
+ /// The channel/node update which should be sent to router
+ update: msgs::HTLCFailChannelUpdate,
+ }