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

Function json_add_invstring

common/json_stream.c:386–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386void json_add_invstring(struct json_stream *result, const char *invstring)
387{
388 if (strstarts(invstring, "lni"))
389 json_add_string(result, "bolt12", invstring);
390 else
391 json_add_string(result, "bolt11", invstring);
392}
393
394void json_add_node_id(struct json_stream *response,
395 const char *fieldname,

Callers

nothing calls this directly

Calls 1

json_add_stringFunction · 0.70

Tested by

no test coverage detected