-
Notifications
You must be signed in to change notification settings - Fork 1k
LSP-Plugin: Add MPP support #8948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nepet
wants to merge
28
commits into
ElementsProject:master
Choose a base branch
from
nepet:plugins/lsps2/mpp-fsm
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
cfcf55d
plugins(lsps2): add session FSM for LSPS2 payment collection
nepet 66d0644
plugins(lsps2): add session actor with action executor boundary
nepet 78796d2
plugins(lsps2): add session manager and unify HTLC handling
nepet abb5b93
plugins(lsps2): add integration tests for session lifecycle
nepet b693d53
plugins(lsps2): add restart recovery for session persistence
nepet 0698fcb
plugins(lsps2): simplify DatastoreProvider to focused trait
nepet 76f0ad0
plugins(lsps2): add EventSink trait for session event notification
nepet 98ab6fd
plugins(lsps2): decouple lsps2 crate from CLN-specific types
nepet 7612e28
plugins(lsps2): simplify actor and session manager
nepet ba62d3f
plugins(lsps2): make collect timeout dev config
nepet e0a2543
plugins(lsps2): route recovered sessions through forward_event path
nepet 4d408c6
lsps2: adding list_finalized_sessions to the DatastoreProvider
b008fd7
plugins(lsps2): fix onion failure codes sent when failing HTLCs
nepet 65ca734
plugins(lsps2): key HTLCs by (incoming channel, htlc id)
nepet cdb0197
plugins(lsps2): forward replayed HTLCs to recovered sessions
nepet b24d224
plugins(lsps2): prevent double channel funding for one payment hash
nepet ab4fad3
plugins(lsps2): fail held HTLCs before cltv expiry, not after
nepet 5052ee2
plugins(lsps2): spawn only one channel-poll task per session
nepet 31a7f8c
plugins(lsps2): harden recovery loop and fee-overflow handling
nepet ceed9e6
plugins(lsps2): advertise client_trusts_lsp and validate payment size…
nepet 8479b9f
plugins(lsps2): fix opening fee base and zero extra_fee TLV
nepet 0cb7453
plugins(lsps2): make channel reserve opt-in and pin datastore compat
nepet 55e8399
plugins(lsps2): only abandon session once no forwarded parts remain
nepet 3d762c3
plugins(lsps2): cleanups from review
nepet 5e92c32
plugins(lsps2): make finalize_session idempotent
nepet 7ef5280
plugins(lsps2): only expire offers when starting a new session
nepet 1730c18
plugins(lsps2): always release funding inputs when abandoning
nepet 9ccb505
pytest: cover finalize_session over an existing finalized entry
nepet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there no way to identify a peer that is unable to set a zero-reserve and reply based on that, rather than setting the degraded mode as default, and asking users to configure an extra flag to get the desired default behavior? Also this means a node is either fully non-0-reserver or fully 0-reserve, no mixing possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, do not amend this PR, create a new follow up one. experimental changes are not logged in the changelog anyway.