pull down to refresh

There was some discussion of adding a flag explicitly for hodl invoices we were trying to kick off w/ our friend Jordi at Lightning Labs (now founder @ Fewsats), but it never materialized. I'll try to pull it up.

As a workaround for our Zaplocker payments and embedded nodes, we check if the CLTV expiry is greater than 200 blocks. This fails to detect hodl invoices across the board though, as most have expiries shorter than that

Does lightning invoices have a place where such a flag can be placed without breaking wallets that don't recognize it?

reply
136 sats \ 1 reply \ @evankaloudis 2h

Yes, read the issue above and see Jordi's comments on the metadata field. Would be interesting how large the invoices would be using JSON encoding vs TLV

reply

That's good that there is a metadata field... I don't know what I was reading, but I didn't see it.
Maybe the idea should be restarted. It seems easy to implement.

reply