2020-09-09 12:10:28 +02:00
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_DUAL_OPEN_CONTROL_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_DUAL_OPEN_CONTROL_H
|
|
|
|
|
|
|
|
#include "config.h"
|
2020-11-24 22:10:19 +01:00
|
|
|
#include <lightningd/subd.h>
|
2020-09-09 12:10:28 +02:00
|
|
|
|
|
|
|
struct per_peer_state;
|
|
|
|
|
|
|
|
void peer_start_dualopend(struct peer *peer,
|
|
|
|
struct per_peer_state *pps,
|
|
|
|
const u8 *send_msg);
|
2020-11-24 22:10:19 +01:00
|
|
|
|
2021-01-08 02:05:06 +01:00
|
|
|
void peer_restart_dualopend(struct peer *peer,
|
|
|
|
struct per_peer_state *pps,
|
|
|
|
struct channel *channel,
|
|
|
|
const u8 *send_msg);
|
|
|
|
|
2020-11-24 22:10:19 +01:00
|
|
|
void dualopen_tell_depth(struct subd *dualopend,
|
|
|
|
struct channel *channel,
|
2021-01-07 20:03:06 +01:00
|
|
|
const struct bitcoin_txid *txid,
|
2020-11-24 22:10:19 +01:00
|
|
|
u32 depth);
|
2021-02-16 20:23:53 +01:00
|
|
|
|
|
|
|
void channel_close_conn(struct channel *channel,
|
|
|
|
const char *why);
|
2021-02-24 03:29:38 +01:00
|
|
|
|
2021-03-05 19:39:05 +01:00
|
|
|
void channel_close_reconn(struct channel *channel,
|
|
|
|
const char *why);
|
|
|
|
|
2021-02-24 03:29:38 +01:00
|
|
|
void json_add_unsaved_channel(struct json_stream *response,
|
|
|
|
const struct channel *channel);
|
2020-09-09 12:10:28 +02:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_DUAL_OPEN_CONTROL_H */
|