Commit a57f64d
committed
refactor(payment): add _init_and_read_tlv_stream_with_custom_tlv_decode macro
Add a new _init_and_read_tlv_stream_with_custom_tlv_decode macro that
combines _init_tlv_field_var and decode_tlv_stream_with_custom_tlv_decode,
mirroring how _init_and_read_tlv_stream combines init with decode_tlv_stream.
This avoids manually breaking out field var initialization from the TLV
stream decoding in BlindedPaymentTlvs and BlindedTrampolineTlvs.
Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>1 parent 27f6289 commit a57f64d
2 files changed
+19
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
| 635 | + | |
644 | 636 | | |
645 | 637 | | |
646 | 638 | | |
| |||
701 | 693 | | |
702 | 694 | | |
703 | 695 | | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
| 696 | + | |
712 | 697 | | |
713 | 698 | | |
714 | 699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
1018 | 1035 | | |
1019 | 1036 | | |
1020 | 1037 | | |
| |||
0 commit comments