MCPcopy Create free account
hub / github.com/ElementsProject/lightning / fromwire_route_info

Function fromwire_route_info

common/bolt11.c:424–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424static bool fromwire_route_info(const u8 **cursor, size_t *max,
425 struct route_info *route_info)
426{
427 fromwire_node_id(cursor, max, &route_info->pubkey);
428 fromwire_short_channel_id(cursor, max, &route_info->short_channel_id);
429 route_info->fee_base_msat = fromwire_u32(cursor, max);
430 route_info->fee_proportional_millionths = fromwire_u32(cursor, max);
431 route_info->cltv_expiry_delta = fromwire_u16(cursor, max);
432 return *cursor != NULL;
433}
434
435static void towire_route_info(u8 **pptr, const struct route_info *route_info)
436{

Callers 1

decode_rFunction · 0.85

Calls 4

fromwire_node_idFunction · 0.70
fromwire_u32Function · 0.50
fromwire_u16Function · 0.50

Tested by

no test coverage detected