| 598 | block_added_notification_serialize); |
| 599 | |
| 600 | void 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 | |
| 613 | static void openchannel_peer_sigs_serialize(struct json_stream *stream, |
| 614 | const struct channel_id *cid, |
no test coverage detected