/// Extracts the sequence from the input.
/// Sequence is a 4-byte little-endian number.
///
/// # Arguments
///
/// * `tx_in` - The LEGACY input
Extracts the sequence from the input.
Sequence is a 4-byte little-endian number.
Extracts the sequence from the input . Sequence is a 4 - byte little - endian number .
pub fn extract_sequence(tx_in: &TxIn) -> Result<u32, SPVError> {
    let mut arr: [u8; 4] = [0u8; 4];
    let b = extract_sequence_le(tx_in)?;
    arr.copy_from_slice(&b[..]);
    Ok(u32::from_le_bytes(arr))
}
pub fn extract_sequence ( tx_in : & TxIn ) -> Result < u32 , SPVError > { let mut arr : [ u8 ; 4 ] = [ 0u8 ; 4 ] ; let b = extract_sequence_le ( tx_in ) ? ; arr . copy_from_slice ( & b [ .. ] ) ; Ok ( u32 :: from_le_bytes ( arr ) ) }
Extracts the sequence from the input.
Extracts the sequence from the input .
tx_in
&TxIn