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

Function json_add_standard_notify_mvt_fields

lightningd/notification.c:468–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468static void json_add_standard_notify_mvt_fields(struct json_stream *stream,
469 struct lightningd *ld,
470 const char *type)
471{
472 json_add_num(stream, "version", COIN_MVT_VERSION);
473 json_add_string(stream, "coin_type", chainparams->lightning_hrp);
474 json_add_node_id(stream, "node_id", &ld->our_nodeid);
475 json_add_string(stream, "type", type);
476}
477
478REGISTER_NOTIFICATION(coin_movement);
479

Callers 2

notify_channel_mvtFunction · 0.85
notify_chain_mvtFunction · 0.85

Calls 3

json_add_numFunction · 0.85
json_add_node_idFunction · 0.85
json_add_stringFunction · 0.50

Tested by

no test coverage detected