2016-08-18 06:53:45 +02:00
|
|
|
#ifndef LIGHTNING_DAEMON_OUTPUT_TO_HTLC_H
|
|
|
|
#define LIGHTNING_DAEMON_OUTPUT_TO_HTLC_H
|
|
|
|
#include "config.h"
|
|
|
|
#include "htlc.h"
|
|
|
|
|
|
|
|
struct peer;
|
|
|
|
struct sha256;
|
|
|
|
|
|
|
|
/* Get a map of HTLCs (including at least those at the given commit_num). */
|
|
|
|
struct htlc_output_map *get_htlc_output_map(const tal_t *ctx,
|
|
|
|
const struct peer *peer,
|
|
|
|
const struct sha256 *rhash,
|
2016-08-31 08:36:32 +02:00
|
|
|
enum side side,
|
2016-08-18 06:53:45 +02:00
|
|
|
unsigned int commit_num);
|
|
|
|
|
|
|
|
/* If this scriptPubkey pays to a HTLC, get the full wscript */
|
|
|
|
struct htlc *txout_get_htlc(struct htlc_output_map *omap,
|
2017-01-25 00:35:43 +01:00
|
|
|
const u8 *script, const u8 **wscript);
|
2016-08-18 06:53:45 +02:00
|
|
|
|
|
|
|
#endif /* LIGHTNING_DAEMON_OUTPUT_TO_HTLC_H */
|