X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Frouting%2Fnetwork_graph.rs;h=16ff80189e96b7dd249d8d96b5112b305e2f272b;hb=ed3a6eeefdeae40d95a9b3a6b2f3fd033b95d072;hp=ca656039d122021fe500be7e7252d540160b591c;hpb=088daf79aa375a69089ba2054ecf9820ae2c8871;p=rust-lightning diff --git a/lightning/src/routing/network_graph.rs b/lightning/src/routing/network_graph.rs index ca656039..16ff8018 100644 --- a/lightning/src/routing/network_graph.rs +++ b/lightning/src/routing/network_graph.rs @@ -1728,6 +1728,7 @@ mod tests { net_graph_msg_handler.handle_event(&Event::PaymentFailed { payment_hash: PaymentHash([0; 32]), rejected_by_dest: false, + all_paths_failed: true, network_update: Some(NetworkUpdate::ChannelUpdateMessage { msg: valid_channel_update, }), @@ -1750,6 +1751,7 @@ mod tests { net_graph_msg_handler.handle_event(&Event::PaymentFailed { payment_hash: PaymentHash([0; 32]), rejected_by_dest: false, + all_paths_failed: true, network_update: Some(NetworkUpdate::ChannelClosed { short_channel_id, is_permanent: false, @@ -1771,6 +1773,7 @@ mod tests { net_graph_msg_handler.handle_event(&Event::PaymentFailed { payment_hash: PaymentHash([0; 32]), rejected_by_dest: false, + all_paths_failed: true, network_update: Some(NetworkUpdate::ChannelClosed { short_channel_id, is_permanent: true,