use std::sync::{Mutex, Arc};
use core::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use core::{cmp, mem};
-use std::collections::{HashMap, HashSet, VecDeque};
use chain::keysinterface::InMemorySigner;
pub struct TestVecWriter(pub Vec<u8>);
if tx.lock_time > self.blocks.lock().unwrap().len() as u32 + 1 && tx.lock_time < 500_000_000 {
for inp in tx.input.iter() {
if inp.sequence != 0xffffffff {
- return;
+ panic!("We should never broadcast a transaction before its locktime ({})!", tx.lock_time);
}
}
}