~ Ever had one of those functions which doesn't quite fit anywhere? Me too. * Implementing a generic notifier framework is overkill in a static codebase * like this, and it's always better to have compile-time calls than runtime, * as it makes the code more explicit. But pasting in direct calls is also an * abstraction violation, so we use this middleman function. */
| 686 | * as it makes the code more explicit. But pasting in direct calls is also an |
| 687 | * abstraction violation, so we use this middleman function. */ |
| 688 | void notify_new_block(struct lightningd *ld, u32 block_height) |
| 689 | { |
| 690 | /* Inform our subcomponents individually. */ |
| 691 | htlcs_notify_new_block(ld, block_height); |
| 692 | channel_notify_new_block(ld, block_height); |
| 693 | gossip_notify_new_block(ld, block_height); |
| 694 | waitblockheight_notify_new_block(ld, block_height); |
| 695 | } |
| 696 | |
| 697 | static void on_sigint(int _ UNUSED) |
| 698 | { |
no test coverage detected