2020-05-07 02:51:43 +02:00
|
|
|
#ifndef LIGHTNING_CHANNELD_WATCHTOWER_H
|
|
|
|
#define LIGHTNING_CHANNELD_WATCHTOWER_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <common/initial_channel.h>
|
|
|
|
|
2021-12-23 21:16:35 +01:00
|
|
|
struct ext_key;
|
|
|
|
|
2020-05-07 02:51:43 +02:00
|
|
|
const struct bitcoin_tx *
|
|
|
|
penalty_tx_create(const tal_t *ctx,
|
|
|
|
const struct channel *channel,
|
|
|
|
u32 penalty_feerate,
|
2021-12-23 21:16:35 +01:00
|
|
|
u32 *final_index,
|
|
|
|
struct ext_key *final_ext_key,
|
2020-05-07 02:51:43 +02:00
|
|
|
u8 *final_scriptpubkey,
|
|
|
|
const struct secret *revocation_preimage,
|
|
|
|
const struct bitcoin_txid *commitment_txid,
|
2020-05-07 07:37:39 +02:00
|
|
|
s16 to_them_outnum, struct amount_sat to_them_sats,
|
|
|
|
int hsm_fd);
|
2020-05-07 02:51:43 +02:00
|
|
|
|
|
|
|
#endif /* LIGHTNING_CHANNELD_WATCHTOWER_H */
|