Skip to content

final_incorrect_htlc_amount failure too strict? #1025

@joostjager

Description

@joostjager

The spec dictates that the htlc amount for the final hop must match the amount in the onion payload exactly:

- if the `amt_to_forward` does NOT correspond with the `incoming_htlc_amt` from the

Is there a reason why the final hop must not accept an htlc with an amount that is higher than the payload amount?

Relaxing this requirement could be helpful to distinguish in a route description between the intended payment amount and the actual amount delivered to the final hop.

For example when the final channel has a min_htlc policy of 100 sat that is above the payment amount of let's say 80 sat, the sender could decide to use the channel anyway. That they are giving away 20 sat extra isn't visible in the route description. For the two last nodes, both will have an amt_to_forward of 100 sat. WIth MPP, there is the total amount, but it doesn't tell you how much each htlc is overpaying.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions