Skip to content

pay: maxdelay has no effect #8609

@ErikDeSmedt

Description

@ErikDeSmedt

How to reproduce?

Create two lightning nodes and create a channel between them. I will call them cln1 and cln2.
Create an invoice on cln2. I am using regtest and the default for min_final_cltv_delta=10

I pay the invoice using pay and set the max_delay=5.

Expected behavior

The payment fails because no route can be computed

Actual behavior

A HTLC is granted from client to server which exceeds max delay.
The payment will succeed

Xpay is a work-around

It works as expected when using xpay

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