pub fn update_by_new_root(&self, new_root: H256) -> Result<Option<SignedUpdate>, DbError> {
        let prev_root: Option<H256> = self.retrieve_keyed_decodable(PREV_ROOT, &new_root)?;

        match prev_root {
            Some(prev_root) => self.update_by_previous_root(prev_root),
            None => Ok(None),
        }
    }
/// Retrieve an update by its new root
Retrieve an update by its new root
Retrieve an update by its new root
pub fn update_by_new_root(&self, new_root: H256) -> Result<Option<SignedUpdate>, DbError> {
        let prev_root: Option<H256> = self.retrieve_keyed_decodable(PREV_ROOT, &new_root)?;
        match prev_root {
            Some(prev_root) => self.update_by_previous_root(prev_root),
            None => Ok(None),
        }
    }
pub fn update_by_new_root ( & self , new_root : H256 ) -> Result < Option < SignedUpdate > , DbError > { let prev_root : Option < H256 > = self . retrieve_keyed_decodable ( PREV_ROOT , & new_root ) ? ; match prev_root { Some ( prev_root ) => self . update_by_previous_root ( prev_root ) , None => Ok ( None ) , } }
Retrieve an update by its new root
Retrieve an update by its new root
&self
new_root
H256
&self
new_root
H256