pub struct LspInfo {
pub node_pk: NodePk,
pub private_p2p_addr: LxSocketAddress,
pub lsp_usernode_base_fee_msat: u32,
pub lsp_usernode_prop_fee_ppm: u32,
pub lsp_external_prop_fee_ppm: u32,
pub lsp_external_base_fee_msat: u32,
pub cltv_expiry_delta: u16,
pub htlc_minimum_msat: u64,
pub htlc_maximum_msat: u64,
}Expand description
Information about the LSP which the user node needs to connect and to generate route hints when no channel exists.
Fields§
§node_pk: NodePk§private_p2p_addr: LxSocketAddressThe socket on which the LSP accepts P2P LN connections from user nodes
lsp_usernode_base_fee_msat: u32LSP’s configured base fee for forwarding over LSP -> User channels.
- For inbound payments, this fee is encoded in the invoice route hints
(as part of the
RoutingFeesstruct) - Also used to estimate how much can be sent to another Lexe user.
lsp_usernode_prop_fee_ppm: u32LSP’s configured prop fee for forwarding over LSP -> User channels.
- For inbound payments, this fee is encoded in the invoice route hints
(as part of the
RoutingFeesstruct) - Also used to estimate how much can be sent to another Lexe user.
lsp_external_prop_fee_ppm: u32LSP’s configured prop fee for forwarding over LSP -> External channels.
lsp_external_base_fee_msat: u32LSP’s configured base fee for forwarding over LSP -> External channels.
cltv_expiry_delta: u16§htlc_minimum_msat: u64§htlc_maximum_msat: u64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LspInfo
impl<'de> Deserialize<'de> for LspInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LspInfo
impl StructuralPartialEq for LspInfo
Auto Trait Implementations§
impl Freeze for LspInfo
impl RefUnwindSafe for LspInfo
impl Send for LspInfo
impl Sync for LspInfo
impl Unpin for LspInfo
impl UnsafeUnpin for LspInfo
impl UnwindSafe for LspInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more