]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix silent merge conflict between bcd65bed7bd9a and 940d7ac8d897589
authorMatt Corallo <git@bluematt.me>
Sun, 28 Jun 2020 17:19:40 +0000 (13:19 -0400)
committerMatt Corallo <git@bluematt.me>
Sun, 28 Jun 2020 17:19:40 +0000 (13:19 -0400)
lightning/src/ln/functional_tests.rs

index 73629750defcb83fea7a35f0daa8b5408c1e02c9..0200ece21734b66f184336efb0ec9c8768988bde 100644 (file)
@@ -1566,7 +1566,7 @@ fn test_fee_spike_violation_fails_htlc() {
        macro_rules! get_route_and_payment_hash {
                ($recv_value: expr) => {{
                        let (payment_preimage, payment_hash) = get_payment_preimage_hash!(nodes[1]);
-                       let net_graph_msg_handler = &nodes[0].net_graph_msg_handler;
+                       let net_graph_msg_handler = &nodes[0].net_graph_msg_handler.network_graph.read().unwrap();
                        let route = get_route(&nodes[0].node.get_our_node_id(), net_graph_msg_handler, &nodes.last().unwrap().node.get_our_node_id(), None, &Vec::new(), $recv_value, TEST_FINAL_CLTV, &logger).unwrap();
                        (route, payment_hash, payment_preimage)
                }}