mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
channel_control: rename record_channel_open + expose
This commit is contained in:
committed by
Christian Decker
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 chain_coin_mvt *mvt;
|
||||||
struct amount_msat channel_open_amt;
|
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),
|
/* Fees might have changed (and we use IMMEDIATE once we're funded),
|
||||||
* so update now. */
|
* so update now. */
|
||||||
try_update_feerates(channel->peer->ld, channel);
|
try_update_feerates(channel->peer->ld, channel);
|
||||||
record_channel_open(channel);
|
channel_record_open(channel);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool channel_on_funding_locked(struct channel *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 */
|
/* Update the channel info on funding locked */
|
||||||
bool channel_on_funding_locked(struct channel *channel,
|
bool channel_on_funding_locked(struct channel *channel,
|
||||||
struct pubkey *next_per_commitment_point);
|
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
|
/* Forget a channel. Deletes the channel and handles all
|
||||||
* associated waiting commands, if present. Notifies peer if available */
|
* associated waiting commands, if present. Notifies peer if available */
|
||||||
void forget_channel(struct channel *channel, const char *err_msg);
|
void forget_channel(struct channel *channel, const char *err_msg);
|
||||||
|
|||||||
Reference in New Issue
Block a user