pub(crate) fn read_state_store<K>(&self, key: &K) -> Result<Option<Vec<u8>>, Error>
    where
        K: AsRef<[u8]>,
    {
        let txn = self.env.begin_ro_txn()?;
        let bytes = match txn.get(self.state_store_db, &key) {
            Ok(slice) => Some(slice.to_owned()),
            Err(lmdb::Error::NotFound) => None,
            Err(err) => return Err(err.into()),
        };
        Ok(bytes)
    }
/// Reads from the state storage DB.
/// If key is non-empty, returns bytes from under the key. Otherwise returns `Ok(None)`.
/// May also fail with storage errors.
Reads from the state storage DB.
If key is non-empty, returns bytes from under the key.
Reads from the state storage DB . If key is non - empty returns bytes from under the key .
pub(crate) fn read_state_store<K>(&self, key: &K) -> Result<Option<Vec<u8>>, Error>
    where
        K: AsRef<[u8]>,
    {
        let txn = self.env.begin_ro_txn()?;
        let bytes = match txn.get(self.state_store_db, &key) {
            Ok(slice) => Some(slice.to_owned()),
            Err(lmdb::Error::NotFound) => None,
            Err(err) => return Err(err.into()),
        };
        Ok(bytes)
    }
pub ( crate ) fn read_state_store < K > ( & self , key : & K ) -> Result < Option < Vec < u8 > > , Error > where K : AsRef < [ u8 ] > , { let txn = self . env . begin_ro_txn ( ) ? ; let bytes = match txn . get ( self . state_store_db , & key ) { Ok ( slice ) => Some ( slice . to_owned ( ) ) , Err ( lmdb :: Error :: NotFound ) => None , Err ( err ) => return Err ( err . into ( ) ) , } ; Ok ( bytes ) }
Reads from the state storage DB.
Reads from the state storage DB .
&self
key
&K
&self
key
&K