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

Function channel_hint_notify

plugins/libplugin-pay.c:397–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397static void channel_hint_notify(struct plugin *plugin,
398 const struct channel_hint *hint)
399{
400 struct json_stream *js =
401 plugin_notification_start_obs(plugin, "channel_hint_update");
402
403 /* Fake up the old "payload" style, *and* the old unwrapped style */
404 if (notification_deprecated_out_ok(plugin, "notification", "payload",
405 "v25.09", "v26.09")) {
406 json_add_string(js, "origin", "pay");
407 json_object_start(js, "payload");
408 channel_hint_notify_core(plugin, js, "channel_hint", hint);
409 json_object_end(js);
410 }
411
412 channel_hint_notify_core(plugin, js, "channel_hint_update", hint);
413 plugin_notification_end_obs(plugin, js);
414}
415
416static void channel_hints_update(struct payment *p,
417 const struct short_channel_id scid,

Callers 1

channel_hints_updateFunction · 0.85

Calls 7

json_object_startFunction · 0.85
channel_hint_notify_coreFunction · 0.85
json_object_endFunction · 0.85
json_add_stringFunction · 0.50

Tested by

no test coverage detected