| 556 | } |
| 557 | |
| 558 | static 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 | } |
| 565 | REGISTER_NOTIFICATION(block_added); |
| 566 | |
| 567 | void notify_block_added(struct lightningd *ld, |
no test coverage detected