Skip to content

Commit

Permalink
Clean up non-dual-funding provisionary splice msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
optout21 committed Jan 19, 2024
1 parent a12876b commit 704dabb
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 1,366 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Up-to-date with main branch as of v0.0.118 (Oct 24, commit d2242f6; originally b

See also `ldk-sample` https://github.com/catenocrypt/ldk-sample/tree/splicing-hapa2

To test: `RUSTFLAGS="--cfg=dual_funding" cargo test splic`
To test: `RUSTFLAGS="--cfg=dual_funding" cargo test -p lightning splic`

Detailed steps
--------------
Expand Down
6 changes: 0 additions & 6 deletions lightning-net-tokio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -624,12 +624,6 @@ mod tests {
fn handle_splice(&self, _their_node_id: &PublicKey, _msg: &Splice) {}
fn handle_splice_ack(&self, _their_node_id: &PublicKey, _msg: &SpliceAck) {}
fn handle_splice_locked(&self, _their_node_id: &PublicKey, _msg: &SpliceLocked) {}
fn handle_splice_created(&self, _their_node_id: &PublicKey, _msg: &SpliceCreated) {}
fn handle_splice_comm_signed(&self, _their_node_id: &PublicKey, _msg: &SpliceCommSigned) {}
fn handle_splice_comm_ack(&self, _their_node_id: &PublicKey, _msg: &SpliceCommAck) {}
fn handle_splice_signed(&self, _their_node_id: &PublicKey, _msg: &SpliceSigned) {}
fn handle_splice_signed_ack(&self, _their_node_id: &PublicKey, _msg: &SpliceSignedAck) {}
fn handle_tx_complete_splice(&self, _their_node_id: &PublicKey, _msg: &TxComplete) {}
#[cfg(dual_funding)]
fn handle_tx_add_input(&self, _their_node_id: &PublicKey, _msg: &TxAddInput) {}
#[cfg(dual_funding)]
Expand Down
39 changes: 0 additions & 39 deletions lightning/src/events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1915,45 +1915,6 @@ pub enum MessageSendEvent {
/// The message which should be sent.
msg: msgs::SpliceLocked,
},
/// #SPLICING
/// Used to indicate that a splice_created message should be sent to the peer with the given node_id.
SendSpliceCreated {
/// The node_id of the node which should receive this message
node_id: PublicKey,
/// The message which should be sent.
msg: msgs::SpliceCreated,
},
/// #SPLICING
/// Used to indicate that a splice_comm_signed message should be sent to the peer with the given node_id.
SendSpliceCommSigned {
/// The node_id of the node which should receive this message
node_id: PublicKey,
/// The message which should be sent.
msg: msgs::SpliceCommSigned,
},
/// Used to indicate that a splice_comm_ack message should be sent to the peer with the given node_id.
SendSpliceCommAck {
/// The node_id of the node which should receive this message
node_id: PublicKey,
/// The message which should be sent.
msg: msgs::SpliceCommAck,
},
/// #SPLICING
/// Used to indicate that a splice_signed_signed message should be sent to the peer with the given node_id.
SendSpliceSigned {
/// The node_id of the node which should receive this message
node_id: PublicKey,
/// The message which should be sent.
msg: msgs::SpliceSigned,
},
/// #SPLICING
/// Used to indicate that a splice_signed_ack message should be sent to the peer with the given node_id.
SendSpliceSignedAck {
/// The node_id of the node which should receive this message
node_id: PublicKey,
/// The message which should be sent.
msg: msgs::SpliceSignedAck,
},
/// Used to indicate that a tx_add_input message should be sent to the peer with the given node_id.
SendTxAddInput {
/// The node_id of the node which should receive this message
Expand Down
556 changes: 14 additions & 542 deletions lightning/src/ln/channel.rs

Large diffs are not rendered by default.

Loading

0 comments on commit 704dabb

Please sign in to comment.