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

Function json_add_jsonrpc_errcode

common/json_stream.c:406–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406void json_add_jsonrpc_errcode(struct json_stream *result, const char *fieldname,
407 enum jsonrpc_errcode code)
408{
409 json_add_primitive_fmt(result, fieldname, "%i", code);
410}
411
412void json_add_invstring(struct json_stream *result, const char *invstring)
413{

Callers 5

json_command_malformedFunction · 0.85
json_stream_fail_nodataFunction · 0.85
command_done_errFunction · 0.85
mw_failFunction · 0.85

Calls 1

json_add_primitive_fmtFunction · 0.85

Tested by

no test coverage detected