2018-02-20 21:59:09 +01:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_ONCHAIN_CONTROL_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_ONCHAIN_CONTROL_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <ccan/short_types/short_types.h>
|
2018-04-17 15:31:30 +02:00
|
|
|
#include <lightningd/lightningd.h>
|
2020-08-25 04:15:48 +02:00
|
|
|
#include <onchaind/onchaind_wiregen.h>
|
2018-02-20 21:59:09 +01:00
|
|
|
|
|
|
|
struct channel;
|
|
|
|
struct bitcoin_tx;
|
|
|
|
struct block;
|
|
|
|
|
2018-04-16 13:20:45 +02:00
|
|
|
enum watch_result onchaind_funding_spent(struct channel *channel,
|
|
|
|
const struct bitcoin_tx *tx,
|
2020-04-03 03:46:18 +02:00
|
|
|
u32 blockheight,
|
|
|
|
bool is_replay);
|
2018-02-20 21:59:09 +01:00
|
|
|
|
2018-04-17 15:31:30 +02:00
|
|
|
void onchaind_replay_channels(struct lightningd *ld);
|
|
|
|
|
2018-02-20 21:59:09 +01:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_ONCHAIN_CONTROL_H */
|