lightning_types::features

Type Alias Bolt11InvoiceFeatures

Source
pub type Bolt11InvoiceFeatures = Features<Bolt11InvoiceContext>;
Expand description

Features used within an invoice.

Aliased Type§

struct Bolt11InvoiceFeatures { /* private fields */ }

Implementations§

Source§

impl Bolt11InvoiceFeatures

Source

pub fn for_keysend(allow_mpp: bool) -> Bolt11InvoiceFeatures

Getting a route for a keysend payment to a private node requires providing the payee’s features (since they were not announced in a node announcement). However, keysend payments don’t have an invoice to pull the payee’s features from, so this method is provided for use when a Bolt11InvoiceFeatures is required in a route.

MPP keysend is not widely supported yet, so we parameterize support to allow the user to choose whether their router should find multi-part routes.