Send back the actual received amount, not expected on HTLC fails
[rust-lightning] / fuzz / fuzz_targets / chanmon_fail_consistency.rs
index 4db158f28e173bd0be3c693f505b64ad54b8afb2..f457a30913b870e4005628697f2f665519108670 100644 (file)
@@ -439,7 +439,7 @@ pub fn do_test(data: &[u8]) {
                                        match event {
                                                events::Event::PaymentReceived { payment_hash, .. } => {
                                                        if $fail {
-                                                               assert!(nodes[$node].fail_htlc_backwards(&payment_hash, 0));
+                                                               assert!(nodes[$node].fail_htlc_backwards(&payment_hash));
                                                        } else {
                                                                assert!(nodes[$node].claim_funds(PaymentPreimage(payment_hash.0)));
                                                        }