X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fln%2Frouter.rs;h=3920d44fc7abddc65c94edab16cc864e0e6f4747;hb=04ff26efa9c31c0543b17422f6f2bde1d0413d21;hp=3de73ccc059ae8159b09f856ca4508fbedf7a278;hpb=8d7b498974c1fd3444cebc476a363c65441d82ca;p=rust-lightning diff --git a/src/ln/router.rs b/src/ln/router.rs index 3de73ccc..3920d44f 100644 --- a/src/ln/router.rs +++ b/src/ln/router.rs @@ -25,7 +25,7 @@ use std::collections::btree_map::Entry as BtreeEntry; use std; /// A hop in a route -#[derive(Clone)] +#[derive(Clone, PartialEq)] pub struct RouteHop { /// The node_id of the node at this hop. pub pubkey: PublicKey, @@ -39,7 +39,7 @@ pub struct RouteHop { } /// A route from us through the network to a destination -#[derive(Clone)] +#[derive(Clone, PartialEq)] pub struct Route { /// The list of hops, NOT INCLUDING our own, where the last hop is the destination. Thus, this /// must always be at least length one. By protocol rules, this may not currently exceed 20 in