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

Function notify_new_block

lightningd/lightningd.c:758–766  ·  view source on GitHub ↗

~ 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. */

Source from the content-addressed store, hash-verified

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

Callers 1

updates_completeFunction · 0.85

Tested by

no test coverage detected