]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Reexport RouteHintHop
authorErik De Smedt <edesmedt@blockstream.com>
Tue, 19 Sep 2023 18:57:40 +0000 (20:57 +0200)
committerErik De Smedt <edesmedt@blockstream.com>
Thu, 21 Sep 2023 13:40:34 +0000 (15:40 +0200)
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

index d4e2b736757d35c62f348fccf122f3cd39403470..b78c28dfc29617528a55e68a3a978b3959a1f8fd 100644 (file)
@@ -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;