Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions lightning-liquidity/src/lsps4/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
use crate::lsps0::ser::LSPSRequestId;
use std::string::String;
use std::vec::Vec;
use lightning::ln::types::ChannelId;
use lightning_types::payment::PaymentHash;



use bitcoin::secp256k1::PublicKey;

/// An event which an LSPS4 client should take some action in response to.
Expand Down Expand Up @@ -63,4 +62,22 @@ pub enum LSPS4ServiceEvent {
/// The number of channels currently open with the peer when the request is made.
channel_count: usize,
},
/// You should splice into an existing channel to add capacity.
///
/// If the splice fails, fall back to opening a new channel using the same sizing policy
/// as [`OpenChannel`].
///
/// [`OpenChannel`]: Self::OpenChannel
SpliceChannel {
/// The node whose channel to splice.
their_network_key: PublicKey,
/// The channel to splice into (the largest usable channel with this peer).
channel_id: ChannelId,
/// The user channel id, for diagnostics.
user_channel_id: u128,
/// Additional capacity needed (msat). The splice-in amount should be at least this.
amt_to_forward_msat: u64,
/// The number of channels currently open with the peer.
channel_count: usize,
},
}
Loading
Loading