Skip to content

Commit 08fc679

Browse files
committed
BOLT 12: renumber recurrence fields.
Only offer_recurrence_base is compulsory, really. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent dd0b993 commit 08fc679

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

12-offer-encoding.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -233,17 +233,17 @@ The human-readable prefix for offers is `lno`.
233233
2. data:
234234
* [`byte`:`time_unit`]
235235
* [`tu32`:`period`]
236-
1. type: 25 (`offer_recurrence_paywindow`)
236+
1. type: 26 (`offer_recurrence_base`)
237+
2. data:
238+
* [`byte`:`proportional_amount`]
239+
* [`tu64`:`basetime`]
240+
1. type: 27 (`offer_recurrence_paywindow`)
237241
2. data:
238242
* [`u32`:`seconds_before`]
239243
* [`tu32`:`seconds_after`]
240-
1. type: 26 (`offer_recurrence_limit`)
244+
1. type: 29 (`offer_recurrence_limit`)
241245
2. data:
242246
* [`tu32`:`max_period`]
243-
1. type: 27 (`offer_recurrence_base`)
244-
2. data:
245-
* [`byte`:`proportional_amount`]
246-
* [`tu64`:`basetime`]
247247

248248
### Recurrence
249249

@@ -535,17 +535,17 @@ while still allowing signature validation.
535535
2. data:
536536
* [`byte`:`time_unit`]
537537
* [`tu32`:`period`]
538-
1. type: 25 (`offer_recurrence_paywindow`)
538+
1. type: 26 (`offer_recurrence_base`)
539+
2. data:
540+
* [`byte`:`proportional_amount`]
541+
* [`tu64`:`basetime`]
542+
1. type: 27 (`offer_recurrence_paywindow`)
539543
2. data:
540544
* [`u32`:`seconds_before`]
541545
* [`tu32`:`seconds_after`]
542-
1. type: 26 (`offer_recurrence_limit`)
546+
1. type: 29 (`offer_recurrence_limit`)
543547
2. data:
544548
* [`tu32`:`max_period`]
545-
1. type: 27 (`offer_recurrence_base`)
546-
2. data:
547-
* [`byte`:`proportional_amount`]
548-
* [`tu64`:`basetime`]
549549
1. type: 80 (`invreq_chain`)
550550
2. data:
551551
* [`chain_hash`:`chain`]
@@ -806,17 +806,17 @@ the `onion_message` `invoice` field.
806806
2. data:
807807
* [`byte`:`time_unit`]
808808
* [`tu32`:`period`]
809-
1. type: 25 (`offer_recurrence_paywindow`)
809+
1. type: 26 (`offer_recurrence_base`)
810+
2. data:
811+
* [`byte`:`proportional_amount`]
812+
* [`tu64`:`basetime`]
813+
1. type: 27 (`offer_recurrence_paywindow`)
810814
2. data:
811815
* [`u32`:`seconds_before`]
812816
* [`tu32`:`seconds_after`]
813-
1. type: 26 (`offer_recurrence_limit`)
817+
1. type: 29 (`offer_recurrence_limit`)
814818
2. data:
815819
* [`tu32`:`max_period`]
816-
1. type: 27 (`offer_recurrence_base`)
817-
2. data:
818-
* [`byte`:`proportional_amount`]
819-
* [`tu64`:`basetime`]
820820
1. type: 80 (`invreq_chain`)
821821
2. data:
822822
* [`chain_hash`:`chain`]

0 commit comments

Comments
 (0)