mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
channel_control: rename record_channel_open + expose
This commit is contained in:
parent
c5e28e4746
commit
bdf7f250de
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user