Skip to content

Commit 93d00b3

Browse files
committed
Support Bolt12Invoice::payment_paths in bindings
Lack of bindings support was because the method used to return a slice of tuples, it seems. Now that it returns &[BlindedPaymentPath], bindings should be possible given that they can be generated for Bolt12Invoice::message_paths.
1 parent 42cc4e7 commit 93d00b3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lightning/src/offers/invoice_macros.rs

-3
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ macro_rules! invoice_accessors_common { ($self: ident, $contents: expr, $invoice
109109
/// Blinded paths provide recipient privacy by obfuscating its node id. Note, however, that this
110110
/// privacy is lost if a public node id is used for
111111
#[doc = concat!("[`", stringify!($invoice_type), "::signing_pubkey`].")]
112-
///
113-
/// This is not exported to bindings users as slices with non-reference types cannot be ABI
114-
/// matched in another language.
115112
pub fn payment_paths(&$self) -> &[BlindedPaymentPath] {
116113
$contents.payment_paths()
117114
}

0 commit comments

Comments
 (0)