Anyone with Zeus connected to a CLN node that wants to test something for me?

Try to create a new invoice from Zeus with the expiration set to 3600 seconds. When you decode the bolt-11 string, is the expiry field set to a unix timestamp or to the expected value “3600”?

Reply to this note

Please Login to reply.

Discussion

#[1]

I get an expiration time of 1667303073 seconds

invoices always have the expiry field set to the delta seconds of their expiration since their creation date, which is also in the invoices.

some decoders will add one to the other to get the absolute expiration datetime though.

paste it on https://bolt11.org/ for more detail.

I decoded the invoice both with lightning-cli and bolt-11 and they both output the unix timestamp.

My understanding, based on https://github.com/lightning/bolts/blob/master/11-payment-encoding.md#tagged-fields, is that the x field is supposed to be set to the time in seconds. Or am I misunderstanding this?

#[3] did not have this problem with LND and Zeus

Nope, it works as expected with Zeus backed by LND.