mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-20 02:27:51 +01:00
ea7903f69a
First, merge the _ahf_ and non-ahf interfaces. Second, remove the always-NULL txs->cmd field. Then, add optional id_prefix for bitcoind_sendrawx, so if it's triggered by a command (e.g. "withdraw") it's shown correctly in logs. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
21 lines
623 B
C
21 lines
623 B
C
#ifndef LIGHTNING_LIGHTNINGD_CLOSING_CONTROL_H
|
|
#define LIGHTNING_LIGHTNINGD_CLOSING_CONTROL_H
|
|
#include "config.h"
|
|
#include <ccan/short_types/short_types.h>
|
|
#include <stdbool.h>
|
|
|
|
struct channel;
|
|
struct lightningd;
|
|
struct peer_fd;
|
|
|
|
/* Resolve a close command for a channel that will be closed soon: returns
|
|
* the cmd_id of one, if any (allocated off ctx). */
|
|
const char *resolve_close_command(const tal_t *ctx,
|
|
struct lightningd *ld, struct channel *channel,
|
|
bool cooperative);
|
|
|
|
void peer_start_closingd(struct channel *channel,
|
|
struct peer_fd *peer_fd);
|
|
|
|
#endif /* LIGHTNING_LIGHTNINGD_CLOSING_CONTROL_H */
|