2020-03-19 00:35:59 +01:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_COIN_MVTS_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_COIN_MVTS_H
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <common/coin_mvt.h>
|
2020-04-14 21:01:18 +02:00
|
|
|
#include <lightningd/channel.h>
|
|
|
|
#include <lightningd/htlc_end.h>
|
2020-03-19 00:35:59 +01:00
|
|
|
#include <lightningd/lightningd.h>
|
|
|
|
|
|
|
|
void notify_channel_mvt(struct lightningd *ld, const struct channel_coin_mvt *mvt);
|
|
|
|
void notify_chain_mvt(struct lightningd *ld, const struct chain_coin_mvt *mvt);
|
2020-04-04 01:58:04 +02:00
|
|
|
|
2020-04-14 21:01:18 +02:00
|
|
|
struct channel_coin_mvt *new_channel_mvt_invoice_hin(const tal_t *ctx,
|
|
|
|
struct htlc_in *hin,
|
|
|
|
struct channel *channel);
|
|
|
|
struct channel_coin_mvt *new_channel_mvt_routed_hin(const tal_t *ctx,
|
|
|
|
struct htlc_in *hin,
|
|
|
|
struct channel *channel);
|
|
|
|
struct channel_coin_mvt *new_channel_mvt_invoice_hout(const tal_t *ctx,
|
|
|
|
struct htlc_out *hout,
|
|
|
|
struct channel *channel);
|
|
|
|
struct channel_coin_mvt *new_channel_mvt_routed_hout(const tal_t *ctx,
|
|
|
|
struct htlc_out *hout,
|
|
|
|
struct channel *channel);
|
|
|
|
|
2020-04-04 01:58:04 +02:00
|
|
|
/* Initialize the coin movement counter on lightningd */
|
|
|
|
void coin_mvts_init_count(struct lightningd *ld);
|
2020-03-19 00:35:59 +01:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_COIN_MVTS_H */
|