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

Function jsonrpc_request_end

lightningd/jsonrpc.c:1393–1400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1391}
1392
1393void jsonrpc_request_end(struct jsonrpc_request *r)
1394{
1395 json_object_end(r->stream); /* closes '.params' */
1396 json_object_end(r->stream); /* closes '.' */
1397
1398 /* We guarantee to have \n\n at end of each response. */
1399 json_stream_append(r->stream, "\n\n", strlen("\n\n"));
1400}
1401
1402/* We add this destructor as a canary to detect cmd failing. */
1403static void destroy_command_canary(struct command *cmd, bool *failed)

Callers 12

json_checkmessageFunction · 0.70
plugin_send_getmanifestFunction · 0.70
plugin_configFunction · 0.70
plugin_hook_call_nextFunction · 0.70
plugin_hook_db_syncFunction · 0.70
config_pluginFunction · 0.70
bitcoind_estimate_fees_Function · 0.70
bitcoind_sendrawtx_Function · 0.70
bitcoind_getchaininfo_Function · 0.70
bitcoind_getutxout_Function · 0.70
json_invoiceFunction · 0.70

Calls 2

json_stream_appendFunction · 0.85
json_object_endFunction · 0.50

Tested by

no test coverage detected