]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Mark the invoice `Network` getter no-export 2023-04-115-bindings-upstream
authorMatt Corallo <git@bluematt.me>
Mon, 17 Apr 2023 17:35:50 +0000 (17:35 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 17 Apr 2023 17:44:19 +0000 (17:44 +0000)
...as it is redundant with the `currency` getter if we're not using
the rust-bitcoin types natively.

lightning-invoice/src/lib.rs

index 8426db37c6481e03c16ea50f921d29634a47ec0b..94a93fe62b7f1d160c5f1dc0c89ba66b56bf34c1 100644 (file)
@@ -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()
        }