Skip to content

Commit a87a02f

Browse files
committed
panic if locktime is violated when broadcasting in tests
1 parent 8c4dd03 commit a87a02f

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
@@ -210,7 +210,7 @@ impl chaininterface::BroadcasterInterface for TestBroadcaster {
210210
if tx.lock_time > self.blocks.lock().unwrap().len() as u32 + 1 && tx.lock_time < 500_000_000 {
211211
for inp in tx.input.iter() {
212212
if inp.sequence != 0xffffffff {
213-
return;
213+
panic!("We should never broadcast a transaction before its locktime ({})!", tx.lock_time);
214214
}
215215
}
216216
}

0 commit comments

Comments
 (0)