Skip to content

Commit baf86a1

Browse files
committed
fix build error in lightning
1 parent 86388bc commit baf86a1

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lightning/src/ln/router.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,7 @@ pub struct RouteHop {
4747
pub cltv_expiry_delta: u32,
4848
}
4949

50-
/// A route from us through the network to a destination
51-
#[derive(Clone, PartialEq, Debug)]
52-
pub struct Route {
53-
/// The list of hops, NOT INCLUDING our own, where the last hop is the destination. Thus, this
54-
/// must always be at least length one. By protocol rules, this may not currently exceed 20 in
55-
/// length.
56-
pub hops: Vec<RouteHop>,
57-
}
58-
59-
impl Writeable for Route {
50+
impl Writeable for Vec<RouteHop> {
6051
fn write<W: ::util::ser::Writer>(&self, writer: &mut W) -> Result<(), ::std::io::Error> {
6152
(self.len() as u8).write(writer)?;
6253
for hop in self.iter() {

0 commit comments

Comments
 (0)