projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add all_paths_failed field to PaymentFailed
[rust-lightning]
/
lightning
/
src
/
routing
/
network_graph.rs
diff --git
a/lightning/src/routing/network_graph.rs
b/lightning/src/routing/network_graph.rs
index ca656039d122021fe500be7e7252d540160b591c..16ff80189e96b7dd249d8d96b5112b305e2f272b 100644
(file)
--- 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,
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,
}),
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,
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,
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,
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,
network_update: Some(NetworkUpdate::ChannelClosed {
short_channel_id,
is_permanent: true,