fn dependencies_validated(&self, pool: &PoolReader) -> Result<(), &str> {
        if self.height == Height::from(0) {
            return Err("Cannot validate height 0 finalization: ");
        }
        if pool.get_notarized_block(&self.block, self.height).is_err() {
            return Err("Cannot validate finalization without valid notarization: ");
        }
        if get_previous_beacon(pool, self.height).is_err() {
            return Err("Cannot validate finalization without previous beacon: ");
        }
        Ok(())
    }
/// Checks that there is a *notarized* block with the given hash and the
/// previous beacon is available to compute the notarization committee.
Checks that there is a *notarized* block with the given hash and the
previous beacon is available to compute the notarization committee.
Checks that there is a * notarized * block with the given hash and the previous beacon is available to compute the notarization committee .
fn dependencies_validated(&self, pool: &PoolReader) -> Result<(), &str> {
        if self.height == Height::from(0) {
            return Err("Cannot validate height 0 finalization: ");
        }
        if pool.get_notarized_block(&self.block, self.height).is_err() {
            return Err("Cannot validate finalization without valid notarization: ");
        }
        if get_previous_beacon(pool, self.height).is_err() {
            return Err("Cannot validate finalization without previous beacon: ");
        }
        Ok(())
    }
fn dependencies_validated ( & self , pool : & PoolReader ) -> Result < ( ) , & str > { if self . height == Height :: from ( 0 ) { return Err ( " " ) ; } if pool . get_notarized_block ( & self . block , self . height ) . is_err ( ) { return Err ( " " ) ; } if get_previous_beacon ( pool , self . height ) . is_err ( ) { return Err ( " " ) ; } Ok ( ( ) ) }
Checks that there is a *notarized* block with the given hash and the
previous beacon is available to compute the notarization committee.
Checks that there is a * notarized * block with the given hash and the previous beacon is available to compute the notarization committee .
&self
pool
&PoolReader
&self
pool
&PoolReader