mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
bolt12: update comments to match latest spec.
No code changes. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
37bc4603b8
commit
8a217f13cf
@@ -362,12 +362,12 @@ static void print_relative_expiry(u64 *created_at, u32 *relative)
|
||||
return;
|
||||
|
||||
/* BOLT-offers #12:
|
||||
* - if `relative_expiry` is present:
|
||||
* - if `invoice_relative_expiry` is present:
|
||||
* - MUST reject the invoice if the current time since 1970-01-01 UTC
|
||||
* is greater than `created_at` plus `seconds_from_creation`.
|
||||
* is greater than `invoice_created_at` plus `seconds_from_creation`.
|
||||
* - otherwise:
|
||||
* - MUST reject the invoice if the current time since 1970-01-01 UTC
|
||||
* is greater than `created_at` plus 7200.
|
||||
* is greater than `invoice_created_at` plus 7200.
|
||||
*/
|
||||
if (!relative)
|
||||
printf("invoice_relative_expiry: %u (%s) (default)\n",
|
||||
|
||||
Reference in New Issue
Block a user