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

Function notify_channel_mvt

lightningd/notification.c:480–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478REGISTER_NOTIFICATION(coin_movement);
479
480void notify_channel_mvt(struct lightningd *ld,
481 const struct channel_coin_mvt *chan_mvt,
482 u64 id)
483{
484 bool include_tags_arr;
485 struct jsonrpc_notification *n = notify_start(ld, "coin_movement");
486 if (!n)
487 return;
488 include_tags_arr = lightningd_deprecated_out_ok(ld, ld->deprecated_ok,
489 "coin_movement", "tags",
490 "v25.09", "v26.09");
491
492 json_add_standard_notify_mvt_fields(n->stream, ld, "channel_mvt");
493 /* Adding (empty) extra_tags field unifies this with notify_chain_mvt */
494 json_add_channel_mvt_fields(n->stream, include_tags_arr, chan_mvt, id, true);
495 notify_send(ld, n);
496}
497
498void notify_chain_mvt(struct lightningd *ld,
499 const struct chain_coin_mvt *chain_mvt,

Callers

nothing calls this directly

Calls 5

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected