lightningdevkit / ldk-node

A ready-to-go node implementation built using LDK.
Other
148 stars 78 forks source link

What is the exact thing will be change with `expiry_secs`? #258

Closed yanganto closed 8 months ago

yanganto commented 8 months ago

I ran into an issue, there is an error on the client side.

2024-02-22 02:52:01 ERROR [ldk_node::liquidity:317] Liquidity request timed out: deadline has elapsed

But there is no error message and it seems nothing wrong on the server side. The log from the server just shows the node disconnect by itself.

Feb 22 02:52:02 kuutamo-alpha kld[493783]: level=info pid=493783 message="Inbound peer disconnected from 61.228.137.92:53548" target="kld::ldk::peer_manager" line="90" node_id=kuutamo-alpha

It is timeout so quickly and the expiry_secs does not work even when I set the value more than 1hr. The request still timeout in a few seconds.

tnull commented 8 months ago

What you're running into is not in any way connected to expiry_secs, which determines when the generated invoice will expire. The timeout you're seeing is happening if we don't receive a response from the LSP in a timely manner. Currently the timeout is 5 secs.

a) Could you check which responses you see received? This might give you an indication where in the protocol the service is stuck b) Which version of lightning-liquidity are you running service-side? Did you already upgrade to 0.1.0-alpha?

tnull commented 8 months ago

Closing as completed.