mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-27 09:04:40 +01:00
2424b7dea8
Either because lightningd tells us it wants to talk, or because the peer says something about a channel. We also introduce a behavior change: we disconnect after a failed open. We might want to modify this later, but we it's a side-effect of openingd not holding onto idle connections. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
23 lines
610 B
C
23 lines
610 B
C
#ifndef LIGHTNING_LIGHTNINGD_OPENING_CONTROL_H
|
|
#define LIGHTNING_LIGHTNINGD_OPENING_CONTROL_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <lightningd/peer_control.h>
|
|
|
|
struct channel_id;
|
|
struct crypto_state;
|
|
struct json_stream;
|
|
struct lightningd;
|
|
struct peer_fd;
|
|
struct uncommitted_channel;
|
|
|
|
void json_add_uncommitted_channel(struct json_stream *response,
|
|
const struct uncommitted_channel *uc);
|
|
|
|
bool peer_start_openingd(struct peer *peer,
|
|
struct peer_fd *peer_fd);
|
|
|
|
struct subd *peer_get_owning_subd(struct peer *peer);
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_OPENING_CONTROL_H */
|