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,
|
2023-07-29 20:41:26 -05:00
|
|
|
struct channel *channel,
|
|
|
|
bool from_abort);
|
2021-01-07 19:05:06 -06:00
|
|
|
|
2023-10-02 09:29:51 +10:30
|
|
|
void watch_opening_inflight(struct lightningd *ld,
|
|
|
|
struct channel_inflight *inflight);
|
|
|
|
|
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
|
|
|
|
2024-06-19 10:06:35 +09:30
|
|
|
void NO_NULL_ARGS json_add_unsaved_channel(struct command *cmd,
|
|
|
|
struct json_stream *response,
|
2024-03-25 11:07:52 +10:30
|
|
|
const struct channel *channel,
|
|
|
|
const struct peer *peer);
|
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 */
|