Add an enum option to pending forwards to fail backwards
[rust-lightning] / src / ln / functional_tests.rs
index dde3500908167cc64fb50a555acdc37d5587ba6b..a68d065bed0ebfcd39132d0dc449aefe50b83e06 100644 (file)
@@ -6263,6 +6263,7 @@ fn test_onion_failure() {
                                match f {
                                        &mut HTLCForwardInfo::AddHTLC { ref mut forward_info, .. } =>
                                                forward_info.outgoing_cltv_value += 1,
+                                       _ => {},
                                }
                        }
                }
@@ -6275,6 +6276,7 @@ fn test_onion_failure() {
                                match f {
                                        &mut HTLCForwardInfo::AddHTLC { ref mut forward_info, .. } =>
                                                forward_info.amt_to_forward -= 1,
+                                       _ => {},
                                }
                        }
                }