Skip to content

Conversation

@t-bast
Copy link
Member

@t-bast t-bast commented Oct 15, 2025

Since we don't have access to channel params in the Peer actor, we don't know the remote htlc_minimum when receiving a splice. This may lead to cases where we later fail because we end up with a negative funding fee, which doesn't make any sense.

To avoid those failures, we hard-code the htlc_minimum value used by Phoenix (which is the only consumer of this protocol so far) and use the max with our local htlc_minimum.

Since we don't have access to channel params in the `Peer` actor, we
don't know the remote `htlc_minimum` when receiving a splice. This may
lead to cases where we later fail because we end up with a negative
funding fee, which doesn't make any sense.

To avoid those failures, we hard-code the `htlc_minimum` value used by
Phoenix (which is the only consumer of this protocol so far) and use
the max with our local `htlc_minimum`.
@t-bast t-bast requested a review from pm47 October 15, 2025 13:46
Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

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

Tested end-to-end with phoenix.

@t-bast t-bast merged commit 711c52a into master Oct 15, 2025
1 check passed
@t-bast t-bast deleted the on-the-fly-funding-fee branch October 15, 2025 15:35
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.

3 participants