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

Function channel_hint_notify_core

plugins/libplugin-pay.c:388–395  ·  view source on GitHub ↗

* Notify subscribers of the `channel_hint` topic about a changed hint * * We share the channel_hints across payments, and across plugins, in order * to maximize the context they have when performing payments. */

Source from the content-addressed store, hash-verified

386 * to maximize the context they have when performing payments.
387 */
388static void channel_hint_notify_core(struct plugin *plugin,
389 struct json_stream *js,
390 const char *fieldname,
391 const struct channel_hint *hint)
392{
393 /* The timestamp used to decay the observation over time. */
394 channel_hint_to_json(fieldname, hint, js);
395}
396
397static void channel_hint_notify(struct plugin *plugin,
398 const struct channel_hint *hint)

Callers 1

channel_hint_notifyFunction · 0.85

Calls 1

channel_hint_to_jsonFunction · 0.85

Tested by

no test coverage detected