pub fn check_prev_timestamp(header: &Header, prev_header: &Header) -> SysValidationResult<()> {
    if header.timestamp() > prev_header.timestamp() {
        Ok(())
    } else {
        Err(PrevHeaderError::Timestamp).map_err(|e| ValidationOutcome::from(e).into())
    }
}
/// Check previous header timestamp is before this header
Check previous header timestamp is before this header
Check previous header timestamp is before this header
pub fn check_prev_timestamp(header: &Header, prev_header: &Header) -> SysValidationResult<()> {
    if header.timestamp() > prev_header.timestamp() {
        Ok(())
    } else {
        Err(PrevHeaderError::Timestamp).map_err(|e| ValidationOutcome::from(e).into())
    }
}
pub fn check_prev_timestamp ( header : & Header , prev_header : & Header ) -> SysValidationResult < ( ) > { if header . timestamp ( ) > prev_header . timestamp ( ) { Ok ( ( ) ) } else { Err ( PrevHeaderError :: Timestamp ) . map_err ( | e | ValidationOutcome :: from ( e ) . into ( ) ) } }
Check previous header timestamp is before this header
Check previous header timestamp is before this header
header
&Header
prev_header
&Header
header
&Header
prev_header
&Header