From b709bb3e35318fdab851f03d5406d583a408da59 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 17 Apr 2023 17:35:50 +0000 Subject: [PATCH] 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. --- lightning-invoice/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) 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() } -- 2.30.2