From: Matt Corallo Date: Mon, 17 Apr 2023 17:35:50 +0000 (+0000) Subject: Mark the invoice `Network` getter no-export X-Git-Tag: v0.0.115~18^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=b709bb3e35318fdab851f03d5406d583a408da59;p=rust-lightning Mark the invoice `Network` getter no-export ...as it is redundant with the `currency` getter if we're not using the rust-bitcoin types natively. --- diff --git a/lightning-invoice/src/lib.rs b/lightning-invoice/src/lib.rs index 8426db37..94a93fe6 100644 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@ -1360,6 +1360,8 @@ impl Invoice { } /// Returns the network for which the invoice was issued + /// + /// This is not exported to bindings users, see [`Self::currency`] instead. pub fn network(&self) -> Network { self.signed_invoice.currency().into() }