<p>Generally when paying an invoice a chain of htlcs from the sender via some path on the network to the recipient is set up. The htlcs lock in by exchanging signatures on every local channel. Now there is a min timelock  which is the amount of time the payment can take. Or the time frame in which the htlcs must settle by releasing a preimage to have a successful payment.</p>
<p>The general workflow is that the recipient is supposed to release the preimage once the htlc on their channel is set up and the amount is equal or bigger the one requested in the invoice.</p>
<p>With the HODL invoice as described in the pullrequest the recipient decides not release the preimage automatically. Therfore the settlement of htlcs is deferred into the future (or the timelock cancels the payment process)</p>

CC BY-SA 4.0
2019-04-04T20:35:21.060Z
2023-05-15T13:29:30.347Z
2023-05-15T13:29:30.347Z
Rene Pickhardt
<p>On March 15th, 2019 hodl invoices where added to lnd via <a href="https://github.com/lightningnetwork/lnd/pull/2022" rel="nofollow noreferrer">this pull request</a>. Hodl invoices allow a recipient to accept or deny a transaction at their discretion, a very useful feature. However, how does this feature actually work? Are funds locked up until the htlc is settled? Are they not reserved, therefore the longer a hodl invoice is left idle the higher likelihood the transaction may ultimately fail? </p>

<lightning-network><lightning-network-daemon>
How do hodl invoices work?
arshbot
# How do hodl invoices work?

(Asked by: username_0 on 2019-04-04)

On March 15th, 2019 hodl invoices where added to lnd via [this pull request](https://github.com/lightningnetwork/lnd/pull/2022). Hodl invoices allow a recipient to accept or deny a transaction at their discretion, a very useful feature. However, how does this feature actually work? Are funds locked up until the htlc is settled? Are they not reserved, therefore the longer a hodl invoice is left idle the higher likelihood the transaction may ultimately fail?

**Tags:** lightning-network, lightning-network-daemon


---

## 1 answers

### Answer by username_1 on 2019-04-04. Score: 5

Generally when paying an invoice a chain of htlcs from the sender via some path on the network to the recipient is set up. The htlcs lock in by exchanging signatures on every local channel. Now there is a min timelock which is the amount of time the payment can take. Or the time frame in which the htlcs must settle by releasing a preimage to have a successful payment.

The general workflow is that the recipient is supposed to release the preimage once the htlc on their channel is set up and the amount is equal or bigger the one requested in the invoice.

With the HODL invoice as described in the pullrequest the recipient decides not release the preimage automatically. Therfore the settlement of htlcs is deferred into the future (or the timelock cancels the payment process)


---

