Skip to main content

Lnv2HoldInvoiceFilter

Type Alias Lnv2HoldInvoiceFilter 

Source
pub type Lnv2HoldInvoiceFilter = Arc<dyn Fn(Hash) -> BoxFuture<'static, bool> + Send + Sync + 'static>;
Expand description

Returns true if the given payment hash corresponds to a HOLD invoice that the gateway created on behalf of a federation. Used by the LND backend to ignore unrelated HOLD invoices on a shared LND node, which would otherwise be mistaken for federation-bound payments and produce invalid responses on LND’s HTLC interceptor wire.

Aliased Type§

pub struct Lnv2HoldInvoiceFilter { /* private fields */ }