Files
palladum-lightning/plugins/spender/openchannel.h
Rusty Russell df5f38dbc1 spender: look for unsigned PSBT on awaiting channels on startup, and re-send.
This covers the other corner case, where we crash before actually
signing and sending the PSBT.  We can spot this because the channel is
in AWAITING_LOCKIN and we have a PSBT, but it's not signed yet.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2025-11-19 07:23:39 +10:30

32 lines
933 B
C

#ifndef LIGHTNING_PLUGINS_SPENDER_OPENCHANNEL_H
#define LIGHTNING_PLUGINS_SPENDER_OPENCHANNEL_H
#include "config.h"
#include <ccan/tal/tal.h>
struct wally_psbt;
struct command;
extern const struct plugin_notification openchannel_notifs[];
extern const size_t num_openchannel_notifs;
/* register_mfc - Register to listen for incoming
* peer signature notifications */
void register_mfc(struct multifundchannel_command *mfc);
struct command_result *
openchannel_init_dest(struct multifundchannel_destination *dest);
void openchannel_init(struct command *init_cmd, const char *b,
const jsmntok_t *t);
struct command_result *
perform_openchannel_update(struct multifundchannel_command *mfc);
struct command_result *
check_sigs_ready(struct multifundchannel_command *mfc);
struct command_result *
perform_openchannel_signed(struct multifundchannel_command *mfc);
#endif /* LIGHTNING_PLUGINS_SPENDER_OPENCHANNEL_H */