2020-09-09 19:40:28 +09:30
|
|
|
#ifndef LIGHTNING_LIGHTNINGD_DUAL_OPEN_CONTROL_H
|
|
|
|
#define LIGHTNING_LIGHTNINGD_DUAL_OPEN_CONTROL_H
|
|
|
|
|
|
|
|
#include "config.h"
|
2020-11-24 15:10:19 -06:00
|
|
|
#include <lightningd/subd.h>
|
2020-09-09 19:40:28 +09:30
|
|
|
|
2022-01-11 11:43:59 +10:30
|
|
|
struct peer_fd;
|
2020-09-09 19:40:28 +09:30
|
|
|
|
2022-03-23 06:57:29 +10:30
|
|
|
bool peer_start_dualopend(struct peer *peer, struct peer_fd *peer_fd,
|
|
|
|
struct channel *channel);
|
2020-11-24 15:10:19 -06:00
|
|
|
|
2022-07-18 21:42:18 +09:30
|
|
|
bool peer_restart_dualopend(struct peer *peer,
|
2022-01-11 11:43:59 +10:30
|
|
|
struct peer_fd *peer_fd,
|
2021-06-03 12:53:05 +09:30
|
|
|
struct channel *channel);
|
2021-01-07 19:05:06 -06:00
|
|
|
|
2020-11-24 15:10:19 -06:00
|
|
|
void dualopen_tell_depth(struct subd *dualopend,
|
|
|
|
struct channel *channel,
|
2021-01-07 13:03:06 -06:00
|
|
|
const struct bitcoin_txid *txid,
|
2020-11-24 15:10:19 -06:00
|
|
|
u32 depth);
|
2021-02-16 13:23:53 -06:00
|
|
|
|
2021-05-11 11:58:00 -05:00
|
|
|
/* Close connection to an unsaved channel */
|
|
|
|
void channel_unsaved_close_conn(struct channel *channel, const char *why);
|
2021-03-05 12:39:05 -06:00
|
|
|
|
2021-02-23 20:29:38 -06:00
|
|
|
void json_add_unsaved_channel(struct json_stream *response,
|
|
|
|
const struct channel *channel);
|
2021-05-20 16:50:42 -05:00
|
|
|
|
|
|
|
void channel_update_reserve(struct channel *channel,
|
|
|
|
struct channel_config *their_config,
|
|
|
|
struct amount_sat funding_total);
|
2020-09-09 19:40:28 +09:30
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_DUAL_OPEN_CONTROL_H */
|