From: Matt Corallo Date: Sat, 11 May 2024 20:05:15 +0000 (+0000) Subject: Mark a few offers fields no-export as we have no mapping for them X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=1eb3520ad4be64d8f27e2f3113523554c9709639;p=rust-lightning Mark a few offers fields no-export as we have no mapping for them --- diff --git a/lightning/src/offers/invoice.rs b/lightning/src/offers/invoice.rs index c1ad5b320..2c0d34204 100644 --- a/lightning/src/offers/invoice.rs +++ b/lightning/src/offers/invoice.rs @@ -836,6 +836,8 @@ macro_rules! invoice_accessors { ($self: ident, $contents: expr) => { /// Fallback addresses for paying the invoice on-chain, in order of most-preferred to /// least-preferred. + /// + /// This is not exported to bindings users as Address is not yet mapped pub fn fallbacks(&$self) -> Vec
{ $contents.fallbacks() } diff --git a/lightning/src/offers/parse.rs b/lightning/src/offers/parse.rs index 3b9b04a5c..cefaaf186 100644 --- a/lightning/src/offers/parse.rs +++ b/lightning/src/offers/parse.rs @@ -125,7 +125,8 @@ pub enum Bolt12ParseError { /// being parsed. InvalidBech32Hrp, /// The string could not be bech32 decoded. - Bech32(bech32::Error), + Bech32(/// This is not exported to bindings users as the details don't matter much + bech32::Error), /// The bech32 decoded string could not be decoded as the expected message type. Decode(DecodeError), /// The parsed message has invalid semantics.