From cd91c06ce9e869f8143a3993729bcf975dd120e9 Mon Sep 17 00:00:00 2001 From: darosior Date: Tue, 6 Aug 2019 17:49:26 +0200 Subject: [PATCH] lightningd/notification: Add missing includes for 'forward_event' And update test mocks --- lightningd/notification.h | 3 +++ wallet/test/run-wallet.c | 9 +++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lightningd/notification.h b/lightningd/notification.h index 7db53d46f..9741c939c 100644 --- a/lightningd/notification.h +++ b/lightningd/notification.h @@ -4,13 +4,16 @@ #include #include #include +#include #include #include +#include #include #include #include #include #include +#include bool notifications_have_topic(const char *topic); diff --git a/wallet/test/run-wallet.c b/wallet/test/run-wallet.c index d6356d665..e277f95b9 100644 --- a/wallet/test/run-wallet.c +++ b/wallet/test/run-wallet.c @@ -376,8 +376,13 @@ void notify_connect(struct lightningd *ld UNNEEDED, struct node_id *nodeid UNNEE void notify_disconnect(struct lightningd *ld UNNEEDED, struct node_id *nodeid UNNEEDED) { fprintf(stderr, "notify_disconnect called!\n"); abort(); } /* Generated stub for notify_forward_event */ -void notify_forward_event(struct lightningd *ld UNNEEDED, const struct htlc_in *in UNNEEDED, const struct htlc_out *out UNNEEDED, enum forward_status state UNNEEDED, enum onion_type failcode UNNEEDED, struct timeabs *resolved_time UNNEEDED) -{ fprintf(stderr, "notify_disconnect called!\n"); abort(); } +void notify_forward_event(struct lightningd *ld UNNEEDED, + const struct htlc_in *in UNNEEDED, + const struct htlc_out *out UNNEEDED, + enum forward_status state UNNEEDED, + enum onion_type failcode UNNEEDED, + struct timeabs *resolved_time UNNEEDED) +{ fprintf(stderr, "notify_forward_event called!\n"); abort(); } /* Generated stub for onchaind_funding_spent */ enum watch_result onchaind_funding_spent(struct channel *channel UNNEEDED, const struct bitcoin_tx *tx UNNEEDED,