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

Function notify_block_added

lightningd/notification.c:567–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565REGISTER_NOTIFICATION(block_added);
566
567void notify_block_added(struct lightningd *ld,
568 const struct block *block)
569{
570 struct jsonrpc_notification *n = notify_start(ld, "block_added");
571 if (!n)
572 return;
573 block_added_notification_serialize(n->stream, block);
574 notify_send(ld, n);
575}
576
577static void openchannel_peer_sigs_serialize(struct json_stream *stream,
578 const struct channel_id *cid,

Callers 1

get_new_blockFunction · 0.70

Calls 3

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected