lightningdevkit / lightning-liquidity

Other
27 stars 17 forks source link

LSPS2: Expiring of requests #27

Open johncantrell97 opened 11 months ago

johncantrell97 commented 11 months ago

There is this concept of valid_until in the opening fee params that specifies a datetime when this particular jit channel request becomes invalid.

We currently are not expiring requests. We are only checking the validity at the time the buy request is made. At a minimum we need:

1) A way to poll or regularly check if requests we are waiting on payment for have expired. 2) When htlc_interception happens we should make sure the request is still valid