pub fn validate_header_work(digest: Hash256Digest, target: &U256) -> bool {
    let empty: Hash256Digest = Default::default();

    if digest == empty {
        return false;
    }

    U256::from_little_endian(digest.as_ref()) < *target
}
/// Checks validity of header work.
///
/// # Arguments
///
/// * `digest` - The digest
/// * `target` - The target threshold
Checks validity of header work.
Checks validity of header work .
pub fn validate_header_work(digest: Hash256Digest, target: &U256) -> bool {
    let empty: Hash256Digest = Default::default();
    if digest == empty {
        return false;
    }
    U256::from_little_endian(digest.as_ref()) < *target
}
pub fn validate_header_work ( digest : Hash256Digest , target : & U256 ) -> bool { let empty : Hash256Digest = Default :: default ( ) ; if digest == empty { return false ; } U256 :: from_little_endian ( digest . as_ref ( ) ) < * target }
Checks validity of header work.
Checks validity of header work .
digest
Hash256Digest
target
&U256
digest
Hash256Digest
target
&U256