| 478 | REGISTER_NOTIFICATION(coin_movement); |
| 479 | |
| 480 | void 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 | |
| 498 | void notify_chain_mvt(struct lightningd *ld, |
| 499 | const struct chain_coin_mvt *chain_mvt, |
nothing calls this directly
no test coverage detected