(&self, hash: &[u8; 32])
| 3030 | |
| 3031 | impl BridgeEventCaptureTxnT for ReadTxn { |
| 3032 | fn get_bridge_event_capture(&self, hash: &[u8; 32]) -> PristineResult<Option<Vec<u8>>> { |
| 3033 | let table = match self.txn.open_table(BRIDGE_EVENT_CAPTURES) { |
| 3034 | Ok(table) => table, |
| 3035 | Err(redb::TableError::TableDoesNotExist(_)) => return Ok(None), |
| 3036 | Err(error) => return Err(PristineError::from(error)), |
| 3037 | }; |
| 3038 | Ok(table.get(hash)?.map(|v| v.value().to_vec())) |
| 3039 | } |
| 3040 | |
| 3041 | fn get_bridge_event_capture_anchor(&self, hash: &[u8; 32]) -> PristineResult<Option<[u8; 32]>> { |
| 3042 | let table = match self.txn.open_table(BRIDGE_EVENT_CAPTURE_ANCHORS) { |
no test coverage detected