()
| 10 | |
| 11 | impl MemoryPool { |
| 12 | pub fn new() -> MemoryPool { |
| 13 | MemoryPool { |
| 14 | inner: RwLock::new(HashMap::new()), |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | pub fn contains(&self, txid_hex: &str) -> bool { |
| 19 | self.inner.read().unwrap().contains_key(txid_hex) |
nothing calls this directly
no outgoing calls
no test coverage detected