X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fln%2Fonion_route_tests.rs;h=706fcb6c24d2057857992758a4750ac36bb70499;hb=e49f738630559ce2eaa97689f1b4d37546fc7020;hp=af82a275d9a889eabe3276d74d49d68e3f2a8e0b;hpb=84fa127661ff09de94ac6129dd0790d6de79f8b7;p=rust-lightning diff --git a/lightning/src/ln/onion_route_tests.rs b/lightning/src/ln/onion_route_tests.rs index af82a275..706fcb6c 100644 --- a/lightning/src/ln/onion_route_tests.rs +++ b/lightning/src/ln/onion_route_tests.rs @@ -610,10 +610,11 @@ macro_rules! get_phantom_route { } ])]); let scorer = test_utils::TestScorer::with_penalty(0); + let network_graph = $nodes[0].network_graph.read_only(); (get_route( - &$nodes[0].node.get_our_node_id(), &payment_params, $nodes[0].network_graph, + &$nodes[0].node.get_our_node_id(), &payment_params, &network_graph, Some(&$nodes[0].node.list_usable_channels().iter().collect::>()), - $amt, TEST_FINAL_CLTV, $nodes[0].logger, &scorer + $amt, TEST_FINAL_CLTV, $nodes[0].logger, &scorer, &[0u8; 32] ).unwrap(), phantom_route_hint.phantom_scid) } }} @@ -992,4 +993,3 @@ fn test_phantom_failure_reject_payment() { .expected_htlc_error_data(0x4000 | 15, &error_data); expect_payment_failed_conditions!(nodes[0], payment_hash, true, fail_conditions); } -