| 395 | } |
| 396 | |
| 397 | static 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 | |
| 416 | static void channel_hints_update(struct payment *p, |
| 417 | const struct short_channel_id scid, |
no test coverage detected