Browse Source

lightningd/notification: Add missing includes for 'forward_event'

And update test mocks
pull/2938/head
darosior 5 years ago
committed by Rusty Russell
parent
commit
cd91c06ce9
  1. 3
      lightningd/notification.h
  2. 9
      wallet/test/run-wallet.c

3
lightningd/notification.h

@ -4,13 +4,16 @@
#include <bitcoin/short_channel_id.h>
#include <bitcoin/tx.h>
#include <ccan/json_escape/json_escape.h>
#include <ccan/time/time.h>
#include <common/amount.h>
#include <common/node_id.h>
#include <lightningd/htlc_end.h>
#include <lightningd/jsonrpc.h>
#include <lightningd/lightningd.h>
#include <lightningd/log.h>
#include <lightningd/plugin.h>
#include <wallet/wallet.h>
#include <wire/gen_onion_wire.h>
bool notifications_have_topic(const char *topic);

9
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,

Loading…
Cancel
Save