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

Function json_add_bool

common/json_stream.c:291–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291void json_add_bool(struct json_stream *result, const char *fieldname, bool value)
292{
293 json_add_primitive(result, fieldname, value ? "true" : "false");
294}
295
296void json_add_null(struct json_stream *stream, const char *fieldname)
297{

Callers 15

htlc_accepted_callFunction · 0.50
handle_getmanifestFunction · 0.50
create_offerFunction · 0.50
json_offeroutFunction · 0.50
json_autocleaninvoiceFunction · 0.50
json_success_subsystemsFunction · 0.50
json_add_halfchanFunction · 0.50
listfunds_successFunction · 0.50
json_add_policyFunction · 0.50
json_add_offerFunction · 0.50

Calls 1

json_add_primitiveFunction · 0.85

Tested by

no test coverage detected