channel_control: rename record_channel_open + expose

This commit is contained in:
niftynei 2020-11-23 19:25:54 -06:00 committed by Christian Decker
parent c5e28e4746
commit bdf7f250de
2 changed files with 5 additions and 2 deletions

View File

@ -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,

View File

@ -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);