Skip to content

lightningd: add peer_id to htlc_accepted_hook#8680

Merged
cdecker merged 1 commit intoElementsProject:masterfrom
nepet:2545-add-peer_id-to-htlc-accepted-hook
Nov 11, 2025
Merged

lightningd: add peer_id to htlc_accepted_hook#8680
cdecker merged 1 commit intoElementsProject:masterfrom
nepet:2545-add-peer_id-to-htlc-accepted-hook

Conversation

@nepet
Copy link
Member

@nepet nepet commented Nov 11, 2025

Important

25.12 FREEZE October 27th: Non-bugfix PRs not ready by this date will wait for 26.03.

RC1 is scheduled on November 10th

The final release is scheduled for December 1st.

Checklist

Before submitting the PR, ensure the following tasks are completed. If an item is not applicable to your PR, please mark it as checked:

  • The changelog has been updated in the relevant commit(s) according to the guidelines.
  • Tests have been added or modified to reflect the changes.
  • Documentation has been reviewed and updated as needed.
  • Related issues have been listed and linked, including any that this PR closes.

This PR adds the id of the peer that offered us an HTLC as peer_id to the htlc_accepted hook. This can be useful in some cases - including for the LSPS-client.

In some cases it is helpful to know who offered us the HTLC.

Changelog-Changed: Plugins: The `htlc_accepted` hook now knows the
`peer_id` of the peer that offered us the HTLC.

Signed-off-by: Peter Neuroth <[email protected]>
@cdecker
Copy link
Member

cdecker commented Nov 11, 2025

ACK e0ca3e8

@cdecker cdecker enabled auto-merge (rebase) November 11, 2025 14:59
@cdecker cdecker merged commit 5c93f12 into ElementsProject:master Nov 11, 2025
73 of 76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants