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

Function notify_chain_mvt

lightningd/notification.c:498–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498void notify_chain_mvt(struct lightningd *ld,
499 const struct chain_coin_mvt *chain_mvt,
500 u64 id)
501{
502 bool include_tags_arr, include_old_utxo_fields, include_old_txid_field;
503 struct jsonrpc_notification *n = notify_start(ld, "coin_movement");
504 if (!n)
505 return;
506
507 include_tags_arr = lightningd_deprecated_out_ok(ld, ld->deprecated_ok,
508 "coin_movement", "tags",
509 "v25.09", "v26.09");
510 include_old_utxo_fields = lightningd_deprecated_out_ok(ld, ld->deprecated_ok,
511 "coin_movement", "utxo_txid",
512 "v25.09", "v26.09");
513 include_old_txid_field = lightningd_deprecated_out_ok(ld, ld->deprecated_ok,
514 "coin_movement", "txid",
515 "v25.09", "v26.09");
516
517 json_add_standard_notify_mvt_fields(n->stream, ld, "chain_mvt");
518 json_add_chain_mvt_fields(n->stream,
519 include_tags_arr,
520 include_old_utxo_fields,
521 include_old_txid_field,
522 chain_mvt, id);
523 notify_send(ld, n);
524}
525
526static void balance_snapshot_serialize(struct json_stream *stream,
527 const struct balance_snapshot *snap)

Callers

nothing calls this directly

Calls 5

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected