Temporary serialization method for the tlv_payload.data until we rework the * API that is generated from the specs to use the setter/getter interface. */
| 1785 | /* Temporary serialization method for the tlv_payload.data until we rework the |
| 1786 | * API that is generated from the specs to use the setter/getter interface. */ |
| 1787 | static void tlvstream_set_tlv_payload_data(struct tlv_field **stream, |
| 1788 | const struct secret *payment_secret, |
| 1789 | u64 total_msat) |
| 1790 | { |
| 1791 | u8 *ser = tal_arr(NULL, u8, 0); |
| 1792 | towire_secret(&ser, payment_secret); |
| 1793 | towire_tu64(&ser, total_msat); |
| 1794 | tlvstream_set_raw(stream, TLV_PAYLOAD_PAYMENT_DATA, ser, tal_bytelen(ser)); |
| 1795 | tal_free(ser); |
| 1796 | } |
| 1797 | |
| 1798 | static void payment_add_hop_onion_payload(struct payment *p, |
| 1799 | struct createonion_hop *dst, |
no test coverage detected