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

Function block_added_notification_serialize

lightningd/notification.c:558–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558static void block_added_notification_serialize(struct json_stream *stream,
559 const struct block *block)
560{
561 json_add_string(stream, "hash",
562 fmt_bitcoin_blkid(tmpctx, &block->blkid));
563 json_add_u32(stream, "height", block->height);
564}
565REGISTER_NOTIFICATION(block_added);
566
567void notify_block_added(struct lightningd *ld,

Callers 1

notify_block_addedFunction · 0.85

Calls 3

fmt_bitcoin_blkidFunction · 0.85
json_add_u32Function · 0.85
json_add_stringFunction · 0.50

Tested by

no test coverage detected