some initial testing
[rust-lightning] / lightning / src / ln / chanmon_update_fail_tests.rs
index 8f4ebdc58726130ac091c45a8154d1c89f29e18e..acc28cf4204495f340c0655d6d8a4e85390437f0 100644 (file)
@@ -2483,6 +2483,9 @@ fn do_channel_holding_cell_serialize(disconnect: bool, reload_a: bool) {
        expect_payment_claimable!(nodes[1], payment_hash_2, payment_secret_2, 100000);
 
        claim_payment(&nodes[0], &[&nodes[1]], payment_preimage_1);
+       // We fail here if we reloaded - the HTLC for this payment was in the holding cell at the time
+       // of the reload, so it wasn't visible in the channelmonitor and thus the outbound payment
+       // wasn't rehypothecated.
        claim_payment(&nodes[0], &[&nodes[1]], payment_preimage_2);
 }
 #[test]