Skip to main content

Module ldk

Module ldk 

Source

Structsยง

GatewayLdkClient
LdkOfferId ๐Ÿ”’
LdkTracingLogger ๐Ÿ”’
Forwards ldk-nodeโ€™s log records into the gatewayโ€™s tracing subscriber.
UserChannelId

Enumsยง

InboundRegistrationRefusal ๐Ÿ”’
Why an invoice must not be registered for a payment hash on the node.
PendingPaymentWakeup ๐Ÿ”’
Outcome of attempting to wake a pay() waiter for a terminal payment event.

Functionsยง

check_inbound_registration ๐Ÿ”’
Decides whether an invoice may be registered for a payment hash the node may already know as one of our outbound payments.
get_esplora_url ๐Ÿ”’
When a port is specified in the Esplora URL, the esplora client inside LDK node cannot connect to the lightning node when there is a trailing slash. The SafeUrl::Display function will always serialize the SafeUrl with a trailing slash, which causes the connection to fail.
get_preimage_and_payment_hash ๐Ÿ”’
Maps LDKโ€™s PaymentKind to an optional preimage and an optional payment hash depending on the type of payment.
htlc_completion_error ๐Ÿ”’
Classifies an ldk-node claim or fail error for the gatewayโ€™s completion retry loop.