mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-03-15 15:39:09 +01:00
Un-export the PrivateRoute
inner field as there are invariants
When we make the `PrivateRoute` inner `RouteHint` `pub`, we failed to note that the `PrivateRoute::new` constructor actually verifies a length invariant. Thus, we un-export the inner field and force users to go back through the `new` fn.
This commit is contained in:
parent
b9797ebdd9
commit
90cc9930b7
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ impl Ord for Bolt11InvoiceSignature {
|
|||
/// The encoded route has to be <1024 5bit characters long (<=639 bytes or <=12 hops)
|
||||
///
|
||||
#[derive(Clone, Debug, Hash, Eq, PartialEq, Ord, PartialOrd)]
|
||||
pub struct PrivateRoute(pub RouteHint);
|
||||
pub struct PrivateRoute(RouteHint);
|
||||
|
||||
/// Tag constants as specified in BOLT11
|
||||
#[allow(missing_docs)]
|
||||
|
|
Loading…
Add table
Reference in a new issue