veriblock-core/src/main/java/org/veriblock/core/utilities/BlockUtility.java
/**
     * Extracts the integer nonce from a given block header
     * @param blockHeader Block header to extract the nonce from
     * @return Extracted integer nonce
     */
Extracts the integer nonce from a given block header
@param blockHeader Block header to extract the nonce from
@return Extracted integer nonce
Extracts the integer nonce from a given block header @param blockHeader Block header to extract the nonce from @return Extracted integer nonce
public static int extractNonceFromBlockHeader(byte[] blockHeader) {
        byte[] nonceBytes = extractFromBlockHeader(blockHeader, NONCE_START_POSITION,
                NONCE_END_POSITION - NONCE_START_POSITION + 1);
        int nonce = 0;
        int bytePointer = 0;
        for (int shift = 24; shift >= 0; shift-=8) {
            nonce += (0xFF & (nonceBytes[bytePointer])) << shift;
            bytePointer++;
        }
        return nonce;
    }
public static int extractNonceFromBlockHeader ( byte [ ] blockHeader ) { byte [ ] nonceBytes = extractFromBlockHeader ( blockHeader , NONCE_START_POSITION , NONCE_END_POSITION - NONCE_START_POSITION + 1 ) ; int nonce = 0 ; int bytePointer = 0 ; for ( int shift = 24 ; shift >= 0 ; shift -= 8 ) { nonce += ( 0xFF & ( nonceBytes [ bytePointer ] ) ) << shift ; bytePointer ++ ; } return nonce ; }
Extracts the integer nonce from a given block header
 @param blockHeader Block header to extract the nonce from
 @return Extracted integer nonce
Extracts the integer nonce from a given block header @param blockHeader Block header to extract the nonce from @return Extracted integer nonce