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
|
|
|
|
2022-01-11 02:13:59 +01:00
|
|
|
struct peer_fd;
|
2020-09-09 12:10:28 +02:00
|
|
|
|
2022-03-22 21:27:29 +01:00
|
|
|
bool peer_start_dualopend(struct peer *peer, struct peer_fd *peer_fd,
|
|
|
|
struct channel *channel);
|
2020-11-24 22:10:19 +01:00
|
|
|
|
2021-01-08 02:05:06 +01:00
|
|
|
void peer_restart_dualopend(struct peer *peer,
|
2022-01-11 02:13:59 +01:00
|
|
|
struct peer_fd *peer_fd,
|
2021-06-03 05:23:05 +02:00
|
|
|
struct channel *channel);
|
2021-01-08 02:05:06 +01:00
|
|
|
|
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
|
|
|
|
2021-05-11 18:58:00 +02:00
|
|
|
/* Close connection to an unsaved channel */
|
|
|
|
void channel_unsaved_close_conn(struct channel *channel, const char *why);
|
2021-03-05 19:39:05 +01:00
|
|
|
|
2021-02-24 03:29:38 +01:00
|
|
|
void json_add_unsaved_channel(struct json_stream *response,
|
|
|
|
const struct channel *channel);
|
2021-05-20 23:50:42 +02:00
|
|
|
|
|
|
|
void channel_update_reserve(struct channel *channel,
|
|
|
|
struct channel_config *their_config,
|
|
|
|
struct amount_sat funding_total);
|
2020-09-09 12:10:28 +02:00
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_DUAL_OPEN_CONTROL_H */
|