Replace Vec<RouteHop> with new Path struct
[rust-lightning] / lightning / src / util / macro_logger.rs
index 6e98272f3171d2bc47082c4171b6e4013800e911..b7224be3ecea8cff537f3ea6373d71fd96716247 100644 (file)
@@ -65,7 +65,7 @@ impl<'a> core::fmt::Display for DebugRoute<'a> {
        fn fmt(&self, f: &mut core::fmt::Formatter) -> Result<(), core::fmt::Error> {
                for (idx, p) in self.0.paths.iter().enumerate() {
                        writeln!(f, "path {}:", idx)?;
-                       for h in p.iter() {
+                       for h in p.hops.iter() {
                                writeln!(f, " node_id: {}, short_channel_id: {}, fee_msat: {}, cltv_expiry_delta: {}", log_pubkey!(h.pubkey), h.short_channel_id, h.fee_msat, h.cltv_expiry_delta)?;
                        }
                }