2018-02-20 21:59:09 +01:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_CHANNEL_CONTROL_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_CHANNEL_CONTROL_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <ccan/short_types/short_types.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
struct channel;
|
|
|
|
struct crypto_state;
|
2018-04-23 12:08:01 +02:00
|
|
|
struct lightningd;
|
2018-02-20 21:59:09 +01:00
|
|
|
|
2018-08-09 02:26:30 +02:00
|
|
|
void peer_start_channeld(struct channel *channel,
|
2018-02-20 21:59:09 +01:00
|
|
|
const struct crypto_state *cs,
|
|
|
|
int peer_fd, int gossip_fd,
|
|
|
|
const u8 *funding_signed,
|
|
|
|
bool reconnected);
|
|
|
|
|
2018-04-23 12:08:01 +02:00
|
|
|
/* Returns true if subd told, otherwise false. */
|
|
|
|
bool channel_tell_funding_locked(struct lightningd *ld,
|
|
|
|
struct channel *channel,
|
2018-05-17 07:08:11 +02:00
|
|
|
const struct bitcoin_txid *txid,
|
|
|
|
u32 depth);
|
2018-05-06 15:32:01 +02:00
|
|
|
/* Notify channels of new blocks. */
|
|
|
|
void channel_notify_new_block(struct lightningd *ld,
|
|
|
|
u32 block_height);
|
2018-04-23 12:08:01 +02:00
|
|
|
|
2018-02-20 21:59:09 +01:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_CHANNEL_CONTROL_H */
|