~ 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. */
| 755 | * as it makes the code more explicit. But pasting in direct calls is also an |
| 756 | * abstraction violation, so we use this middleman function. */ |
| 757 | void notify_new_block(struct lightningd *ld) |
| 758 | { |
| 759 | /* Inform our subcomponents individually. */ |
| 760 | htlcs_notify_new_block(ld); |
| 761 | channel_notify_new_block(ld); |
| 762 | channel_gossip_notify_new_block(ld); |
| 763 | gossip_notify_new_block(ld); |
| 764 | waitblockheight_notify_new_block(ld); |
| 765 | } |
| 766 | |
| 767 | static void on_sigint(int _ UNUSED) |
| 768 | { |
no test coverage detected