MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / get_bridge_event_capture

Method get_bridge_event_capture

atomic-core/src/pristine/txn/read.rs:3032–3039  ·  view source on GitHub ↗
(&self, hash: &[u8; 32])

Source from the content-addressed store, hash-verified

3030
3031impl 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) {

Callers 1

shim_event_capturedMethod · 0.45

Calls 2

valueMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected