mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
tlv: Migrate tlv serialization to typesafe function
This commit is contained in:
committed by
Rusty Russell
parent
e12b5c3824
commit
626675c83c
@@ -144,7 +144,7 @@ static void sphinx_add_tlv_hop(struct sphinx_path *path,
|
||||
const struct tlv_tlv_payload *tlv)
|
||||
{
|
||||
u8 *tlvs = tal_arr(path, u8, 0);
|
||||
towire_tlvs(&tlvs, tlvs_tlv_payload, TLVS_TLV_PAYLOAD_ARRAY_SIZE, tlv);
|
||||
towire_tlv_payload(&tlvs, tlv);
|
||||
sphinx_add_raw_hop(path, pubkey, SPHINX_TLV_PAYLOAD, tlvs);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user