2

Consider this channel https://1ml.com/channel/612829298476056576 :

Node 1: Caffeine
        Time Lock Delta: 10

Node 2: HODLcat.com
        Time Lock Delta: 144

How is an HTLC passing through this channel affected ? Would the channel work more reliably if the time-lock deltas were the same?

2 Answers 2

2

No it does not have to be the same value.

The timelock somewhat reflects the openness to risk. The lower the value the quicker a node has to engage into force close if there is an unsettled htlc and the partner does not respond to communication.

Thus the higher your partner's cltv delta the longer you can be offline before your partner might force close channels. AFAIK there is currently no real recommendation for the cltv delta. Though nodes seem to lower the default value over time. Remember that high values can lead to longer locked funds. This it is a tradeoff anyway

1

An HTLC passing from node 1 (here Caffeine) to node 2 (here HODLcat.com) will be added a 144 blocks time-lock.

An HTLC passing from node 2 (here HODLcat.com) to node 1 (here Caffeine) will be added a 10 blocks time-lock.

The channel operation does not depend of the CLTV deltas, it really is a pure personal setting as it defines the time a forwarding node has to redeem an HTLC on-chain in case it gets timed out down the route and your peer becomes unresponsive.

However, wallets take it into account when computing routes as they sum up along the route and determine how many blocks funds of the end-payer may be stuck in a worst-case scenario.

You can find more details in the specification (it's called cltv_expiry_delta), which gives a really detailed explanation and some recommendations which have been updated lately with the discovery of the recent attacks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.