X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fln%2Frouter.rs;h=75df79450f3507d80969ee0eb186a3a8022d28f6;hb=cf6308a5aede0f3f1493cbfb32a1ad04c8961191;hp=2419106fdd844e3b2bd357c02bc88b63c500cabf;hpb=6185a2819090bd077954244c5e2adaab5efcaa1a;p=rust-lightning diff --git a/src/ln/router.rs b/src/ln/router.rs index 2419106f..75df7945 100644 --- a/src/ln/router.rs +++ b/src/ln/router.rs @@ -12,6 +12,7 @@ use std::collections::{HashMap,BinaryHeap}; use std::collections::hash_map::Entry; /// A hop in a route +#[derive(Clone)] pub struct RouteHop { pub pubkey: PublicKey, /// The channel that should be used from the previous hop to reach this node. @@ -24,6 +25,7 @@ pub struct RouteHop { } /// A route from us through the network to a destination +#[derive(Clone)] 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