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

Function notify_block_added

lightningd/notification.c:600–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598 block_added_notification_serialize);
599
600void notify_block_added(struct lightningd *ld,
601 const struct block *block)
602{
603 void (*serialize)(struct json_stream *,
604 const struct block *block) = block_added_notification_gen.serialize;
605
606 struct jsonrpc_notification *n =
607 jsonrpc_notification_start(NULL, "block_added");
608 serialize(n->stream, block);
609 jsonrpc_notification_end(n);
610 plugins_notify(ld->plugins, take(n));
611}
612
613static void openchannel_peer_sigs_serialize(struct json_stream *stream,
614 const struct channel_id *cid,

Callers 1

get_new_blockFunction · 0.70

Calls 3

jsonrpc_notification_endFunction · 0.85
plugins_notifyFunction · 0.85

Tested by

no test coverage detected