@@ -4119,7 +4119,12 @@ where
4119
4119
}
4120
4120
4121
4121
/// Initiate a splice, to change the channel capacity of an existing funded channel.
4122
- /// TODO(splicing): Expand documentation
4122
+ /// After completion of splicing, the funding transaction will be replaced by a new one, spending the old funding transaction,
4123
+ /// with optional extra inputs (splice-in) and/or extra outputs (splice-out or change).
4124
+ /// TODO(splicing): Implementation is currently incomplete.
4125
+ /// Note: Currently only splice-in is supported (increase in channel capacity), splice-out is not.
4126
+ /// - our_funding_contribution_satoshis: the amount contributed by us to the channel. This will increase our channel balance.
4127
+ /// - our_funding_inputs: the funding inputs provided by us. If our contribution is positive, our funding inputs must cover at most that amount.
4123
4128
#[cfg(splicing)]
4124
4129
pub fn splice_channel(
4125
4130
&self, channel_id: &ChannelId, counterparty_node_id: &PublicKey, our_funding_contribution_satoshis: i64,
@@ -9354,8 +9359,7 @@ where
9354
9359
/// Handle incoming splice request, transition channel to splice-pending (unless some check fails).
9355
9360
#[cfg(splicing)]
9356
9361
fn internal_splice_init(&self, counterparty_node_id: &PublicKey, msg: &msgs::SpliceInit) -> Result<(), MsgHandleErrInternal> {
9357
- // TODO(splicing): checks
9358
- // TODO(splicing): if we accept splicing, quiscence
9362
+ // TODO(splicing): if we accept splicing, quiescence
9359
9363
9360
9364
let per_peer_state = self.per_peer_state.read().unwrap();
9361
9365
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
@@ -9402,9 +9406,6 @@ where
9402
9406
/// Handle incoming splice request ack, transition channel to splice-pending (unless some check fails).
9403
9407
#[cfg(splicing)]
9404
9408
fn internal_splice_ack(&self, counterparty_node_id: &PublicKey, msg: &msgs::SpliceAck) -> Result<(), MsgHandleErrInternal> {
9405
- // TODO(splicing): checks
9406
- // TODO(splicing): check if we have initiated splicing
9407
-
9408
9409
let per_peer_state = self.per_peer_state.read().unwrap();
9409
9410
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
9410
9411
.ok_or_else(|| {
0 commit comments