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

Function unpack_routes

lightningd/invoice.c:991–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989}
990
991static struct route_info **unpack_routes(const tal_t *ctx,
992 const char *buffer,
993 const jsmntok_t *routestok)
994{
995 struct route_info **routes;
996 const jsmntok_t *t;
997 size_t i;
998
999 if (!routestok)
1000 return NULL;
1001
1002 routes = tal_arr(ctx, struct route_info *, routestok->size);
1003 json_for_each_arr(i, t, routestok)
1004 routes[i] = unpack_route(routes, buffer, t);
1005
1006 return routes;
1007}
1008#endif /* DEVELOPER */
1009
1010static struct command_result *param_positive_msat_or_any(struct command *cmd,

Callers 1

json_invoiceFunction · 0.85

Calls 1

unpack_routeFunction · 0.85

Tested by

no test coverage detected