X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fln%2Frouter.rs;h=bb20c31c35af9f868ee76c91933558b173130dc4;hb=bf7eeb1ec726fbe17765ff08932249bd75789959;hp=dc58f6d20ec374f3476ffa2ab404e1b339225a65;hpb=35853a607d53b8987ebe4d4c7b7119fc188e1e32;p=rust-lightning diff --git a/src/ln/router.rs b/src/ln/router.rs index dc58f6d2..bb20c31c 100644 --- a/src/ln/router.rs +++ b/src/ln/router.rs @@ -1468,6 +1468,9 @@ mod tests { remote_network_id: node8.clone(), channel_value_satoshis: 0, user_id: 0, + outbound_capacity_msat: 0, + inbound_capacity_msat: 0, + is_live: true, }]; let route = router.get_route(&node3, Some(&our_chans), &Vec::new(), 100, 42).unwrap(); assert_eq!(route.hops.len(), 2); @@ -1543,6 +1546,9 @@ mod tests { remote_network_id: node4.clone(), channel_value_satoshis: 0, user_id: 0, + outbound_capacity_msat: 0, + inbound_capacity_msat: 0, + is_live: true, }]; let route = router.get_route(&node7, Some(&our_chans), &last_hops, 100, 42).unwrap(); assert_eq!(route.hops.len(), 2);