mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
8537e77ac7
Wrap up more logic internally to the method call for htlcs. Also, don't touch part id if we're not the 'origin' Suggested-By: @rustyrussell
29 lines
1.1 KiB
C
29 lines
1.1 KiB
C
#ifndef LIGHTNING_LIGHTNINGD_COIN_MVTS_H
|
|
#define LIGHTNING_LIGHTNINGD_COIN_MVTS_H
|
|
#include "config.h"
|
|
|
|
#include <common/coin_mvt.h>
|
|
#include <lightningd/channel.h>
|
|
#include <lightningd/htlc_end.h>
|
|
#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);
|
|
|
|
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);
|
|
|
|
/* Initialize the coin movement counter on lightningd */
|
|
void coin_mvts_init_count(struct lightningd *ld);
|
|
#endif /* LIGHTNING_LIGHTNINGD_COIN_MVTS_H */
|