Bound incoming HTLC witnessScript to min/max limits
[rust-lightning] / lightning / src / ln / functional_test_utils.rs
index f3b3302eae39658853e7e11089905ca9c9f91ad6..6ca2dfd753a6667e8ce1b68d77873abaf05764e4 100644 (file)
@@ -875,6 +875,9 @@ pub fn create_network(node_count: usize, node_config: &[Option<UserConfig>]) ->
        nodes
 }
 
+pub const ACCEPTED_HTLC_SCRIPT_WEIGHT: usize = 138; //Here we have a diff due to HTLC CLTV expiry being < 2^15 in test
+pub const OFFERED_HTLC_SCRIPT_WEIGHT: usize = 133;
+
 #[derive(PartialEq)]
 pub enum HTLCType { NONE, TIMEOUT, SUCCESS }
 /// Tests that the given node has broadcast transactions for the given Channel