Skip to content

bolt12: preparation 1#10546

Open
f321x wants to merge 10 commits intospesmilo:masterfrom
f321x:bolt12_preparation_1
Open

bolt12: preparation 1#10546
f321x wants to merge 10 commits intospesmilo:masterfrom
f321x:bolt12_preparation_1

Conversation

@f321x
Copy link
Copy Markdown
Member

@f321x f321x commented Mar 25, 2026

the bolt12 branch is getting large, so i cherry picked some commits that can already be reviewed and merged into master step by step. these are mostly onion message changes.

@f321x f321x force-pushed the bolt12_preparation_1 branch 6 times, most recently from 4ed0aed to efa2a14 Compare March 30, 2026 10:55
@f321x f321x marked this pull request as ready for review March 30, 2026 12:25
accumulator and others added 10 commits April 1, 2026 09:07
…ply_paths.

the former also calculates payinfo information for payment scenarios.
include payment_relay struct for payment blinded_paths.
Add unittest to test the payment path of get_blinded_paths_to_me
Mock LNWallet._add_peer so direct connection fallbacks don't
cause an exception.
This allows restricting blinded paths to channels that have sufficient receive
capacity for payment.

NOTE: this might have privacy issues, as this can be used to probe channel capacity.
Maybe randomize leeway?

@f321x: changed to use scid alias in create_blinded_path
Factor out code from `send_onion_message_to` into a separate
function `_create_route_to_introduction_point` to make it
easier to reason about it and more testable.
Don't include first hop of the path,
this is the hop from us to the first node and we don't
need a payload for ourselves.

Also adds unittest checking this.
@f321x f321x force-pushed the bolt12_preparation_1 branch from efa2a14 to 4254c9a Compare April 1, 2026 07:08
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