Skip to content

Commit d267f7b

Browse files
committed
panic if locktime is violated when broadcasting in tests
1 parent e9e0254 commit d267f7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/util/test_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ impl chaininterface::BroadcasterInterface for TestBroadcaster {
209209
if tx.lock_time > self.blocks.lock().unwrap().len() as u32 + 1 && tx.lock_time < 500_000_000 {
210210
for inp in tx.input.iter() {
211211
if inp.sequence != 0xffffffff {
212-
return;
212+
panic!("We should never broadcast a transaction before its locktime ({})!", tx.lock_time);
213213
}
214214
}
215215
}

0 commit comments

Comments
 (0)