Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
398 changes: 398 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions lightning/src/events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,9 @@ pub enum Event {
/// The offline peer should be awoken if possible on receipt of this event, such as via the LSPS5
/// protocol.
///
/// Once they connect, you should handle the generated [`Event::OnionMessagePeerConnected`] and
/// provide the stored message.
///
/// # Failure Behavior and Persistence
/// This event will eventually be replayed after failures-to-handle (i.e., the event handler
/// returning `Err(ReplayEvent ())`), but won't be persisted across restarts.
Expand All @@ -1698,16 +1701,18 @@ pub enum Event {
/// The onion message intended to be forwarded to `peer_node_id`.
message: msgs::OnionMessage,
},
/// Indicates that an onion message supporting peer has come online and it may
/// be time to forward any onion messages that were previously intercepted for
/// them. This event will only be generated if the `OnionMessenger` was
/// initialized with
/// Indicates that an onion message supporting peer has come online and any messages previously
/// stored for them (from [`Event::OnionMessageIntercepted`]s) should be forwarded to them by
/// calling [`OnionMessenger::forward_onion_message`].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good addition, wasn't clear indeed that forward_onion_message needs to be called.

///
/// This event will only be generated if the `OnionMessenger` was initialized with
/// [`OnionMessenger::new_with_offline_peer_interception`], see its docs.
///
/// # Failure Behavior and Persistence
/// This event will eventually be replayed after failures-to-handle (i.e., the event handler
/// returning `Err(ReplayEvent ())`), but won't be persisted across restarts.
///
/// [`OnionMessenger::forward_onion_message`]: crate::onion_message::messenger::OnionMessenger::forward_onion_message
/// [`OnionMessenger::new_with_offline_peer_interception`]: crate::onion_message::messenger::OnionMessenger::new_with_offline_peer_interception
OnionMessagePeerConnected {
/// The node id of the peer we just connected to, who advertises support for
Expand Down
4 changes: 4 additions & 0 deletions lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4681,6 +4681,10 @@ where
/// emitted. At this point, any inputs contributed to the splice can only be re-spent if an
/// [`Event::DiscardFunding`] is seen.
///
/// After initial signatures have been exchanged, if we contributed any inputs,
/// [`Event::FundingTransactionReadyForSigning`] will be generated and
/// [`ChannelManager::funding_transaction_signed`] should be called.
///
/// If any failures occur while negotiating the funding transaction, an [`Event::SpliceFailed`]
/// will be emitted. Any contributed inputs no longer used will be included here and thus can
/// be re-spent.
Expand Down
4 changes: 0 additions & 4 deletions pending_changelog/3531-buggy-router-leak.txt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions pending_changelog/3678-channel-type-check.txt

This file was deleted.

8 changes: 0 additions & 8 deletions pending_changelog/3700-reason-in-handling-failed.txt

This file was deleted.

6 changes: 0 additions & 6 deletions pending_changelog/3881.txt

This file was deleted.

9 changes: 0 additions & 9 deletions pending_changelog/3905-async-background-persistence.txt

This file was deleted.

3 changes: 0 additions & 3 deletions pending_changelog/3917-blinded-path-auth.txt

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions pending_changelog/4045-sender-lsp.txt

This file was deleted.

Loading