Do not broadcast commitment txn on Permanent mon update failure
[rust-lightning] / lightning / src / ln / chanmon_update_fail_tests.rs
index ced4ceee95577007e51da30e8f703942f8619e04..aca5503521e75c7b16cb3444d545226d09be057a 100644 (file)
@@ -65,6 +65,8 @@ fn test_simple_monitor_permanent_update_fail() {
                _ => panic!("Unexpected event"),
        };
 
+       assert!(nodes[0].tx_broadcaster.txn_broadcasted.lock().unwrap().is_empty());
+
        // TODO: Once we hit the chain with the failure transaction we should check that we get a
        // PaymentPathFailed event