diff --git a/lightningd/channel_control.c b/lightningd/channel_control.c index d684f1ff5..789a86d19 100644 --- a/lightningd/channel_control.c +++ b/lightningd/channel_control.c @@ -78,7 +78,7 @@ void notify_feerate_change(struct lightningd *ld) } } -static void record_channel_open(struct channel *channel) +void channel_record_open(struct channel *channel) { struct chain_coin_mvt *mvt; struct amount_msat channel_open_amt; @@ -146,7 +146,7 @@ static void lockin_complete(struct channel *channel) /* Fees might have changed (and we use IMMEDIATE once we're funded), * so update now. */ try_update_feerates(channel->peer->ld, channel); - record_channel_open(channel); + channel_record_open(channel); } bool channel_on_funding_locked(struct channel *channel, diff --git a/lightningd/channel_control.h b/lightningd/channel_control.h index 53395a6b0..2a30efd7c 100644 --- a/lightningd/channel_control.h +++ b/lightningd/channel_control.h @@ -32,6 +32,9 @@ struct command_result *cancel_channel_before_broadcast(struct command *cmd, /* Update the channel info on funding locked */ bool channel_on_funding_locked(struct channel *channel, struct pubkey *next_per_commitment_point); + +/* Record channel open (coin movement notifications) */ +void channel_record_open(struct channel *channel); /* Forget a channel. Deletes the channel and handles all * associated waiting commands, if present. Notifies peer if available */ void forget_channel(struct channel *channel, const char *err_msg);