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

Function json_add_bool

common/json_stream.c:310–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308}
309
310void json_add_bool(struct json_stream *result, const char *fieldname, bool value)
311{
312 json_add_primitive(result, fieldname, value ? "true" : "false");
313}
314
315void json_add_hex(struct json_stream *js, const char *fieldname,
316 const void *data, size_t len)

Callers 15

json_add_utxoFunction · 0.85
json_listfundsFunction · 0.85
json_listnetworkeventsFunction · 0.85
json_add_reservestatusFunction · 0.85
json_add_unsaved_channelFunction · 0.85
handle_dry_run_finishedFunction · 0.85
build_commit_responseFunction · 0.85
handle_psbt_changedFunction · 0.85
channel_cleanup_commandsFunction · 0.85

Calls 1

json_add_primitiveFunction · 0.85

Tested by 1

json_spamcommandFunction · 0.68