core-lightning/lightningd/closing_control.h
Dusty Daemon 809f3b01d9 close: Print multiple txs; Fixes #6467
Changelog-Changed: `close` now outputs txs & txids of all closing transactions (splice candidates can cause there to be multiple).
2024-11-17 16:04:06 +10:30

23 lines
728 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;
/* Find cmd_id for closing command, if any. */
const char *cmd_id_from_close_command(const tal_t *ctx,
struct lightningd *ld, struct channel *channel);
/* Resolve a close command for a channel that will be closed soon. */
void resolve_close_command(struct lightningd *ld, struct channel *channel,
bool cooperative, struct bitcoin_tx **close_txs);
void peer_start_closingd(struct channel *channel,
struct peer_fd *peer_fd);
#endif /* LIGHTNING_LIGHTNINGD_CLOSING_CONTROL_H */