From d1d23ff073674d63257d1d8d45c7c19c812dab3e Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Tue, 19 Sep 2023 20:57:40 +0200 Subject: [PATCH] Reexport RouteHintHop Earlier @benthecarman re-exported `RouteHint` to make life-easier for developpers that use `lightning-invoice` and don't use the `lightning`-crate. This only solved part of the issue. To create a `RouteHint` the developer must also have access to `RouteHintHop`. See also: PR https://github.com/lightningdevkit/rust-lightning/pull/2572 commit 79b426f49b08a66e404669ce7d1332c3977c5d95 --- lightning-invoice/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightning-invoice/src/lib.rs b/lightning-invoice/src/lib.rs index d4e2b7367..b78c28dfc 100644 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@ -51,8 +51,6 @@ use bitcoin::{Address, Network, PubkeyHash, ScriptHash}; use bitcoin::util::address::{Payload, WitnessVersion}; use bitcoin_hashes::{Hash, sha256}; use lightning::ln::features::Bolt11InvoiceFeatures; -#[cfg(any(doc, test))] -use lightning::routing::gossip::RoutingFees; use lightning::util::invoice::construct_invoice_preimage; use secp256k1::PublicKey; @@ -74,7 +72,9 @@ use serde::{Deserialize, Deserializer,Serialize, Serializer, de::Error}; #[doc(no_inline)] pub use lightning::ln::PaymentSecret; #[doc(no_inline)] -pub use lightning::routing::router::RouteHint; +pub use lightning::routing::router::{RouteHint, RouteHintHop}; +#[doc(no_inline)] +pub use lightning::routing::gossip::RoutingFees; mod de; mod ser; -- 2.39.5