pub(crate) fn del_state_store<K>(&self, key: K) -> Result<bool, Error>
    where
        K: AsRef<[u8]>,
    {
        let mut txn = self.env.begin_rw_txn()?;
        let result = match txn.del(self.state_store_db, &key, None) {
            Ok(_) => Ok(true),
            Err(lmdb::Error::NotFound) => Ok(false),
            Err(err) => Err(err),
        }?;
        txn.commit()?;
        Ok(result)
    }
/// Deletes value living under the key from the state storage DB.
Deletes value living under the key from the state storage DB.
Deletes value living under the key from the state storage DB .
pub(crate) fn del_state_store<K>(&self, key: K) -> Result<bool, Error>
    where
        K: AsRef<[u8]>,
    {
        let mut txn = self.env.begin_rw_txn()?;
        let result = match txn.del(self.state_store_db, &key, None) {
            Ok(_) => Ok(true),
            Err(lmdb::Error::NotFound) => Ok(false),
            Err(err) => Err(err),
        }?;
        txn.commit()?;
        Ok(result)
    }
pub ( crate ) fn del_state_store < K > ( & self , key : K ) -> Result < bool , Error > where K : AsRef < [ u8 ] > , { let mut txn = self . env . begin_rw_txn ( ) ? ; let result = match txn . del ( self . state_store_db , & key , None ) { Ok ( _ ) => Ok ( true ) , Err ( lmdb :: Error :: NotFound ) => Ok ( false ) , Err ( err ) => Err ( err ) , } ? ; txn . commit ( ) ? ; Ok ( result ) }
Deletes value living under the key from the state storage DB.
Deletes value living under the key from the state storage DB .
&self
key
K
&self
key
K