diff --git a/consensus/ethash_hash/blake2b.c b/consensus/ethash_hash/blake2b.c index 73464c99..5ff2aab4 100644 --- a/consensus/ethash_hash/blake2b.c +++ b/consensus/ethash_hash/blake2b.c @@ -1,14 +1,10 @@ #ifndef __BLAKE2B_C_ #define __BLAKE2B_C_ -//#include +#include #include #include -typedef unsigned long long uint64_t; -typedef unsigned char uint8_t; -typedef unsigned int uint32_t; - #include "xxenc.c" /** @@ -239,7 +235,7 @@ static inline void blake2b( #define _VP1 829000 -static inline void hash_enter(uint8_t* o,const uint8_t* s,uint64_t height) { +static inline void hash_enter(uint8_t* o,const uint8_t* s,unsigned long long height) { uint8_t p[16]; if(height>=_VP1) { uint8_t s_enc[40]={0}; @@ -274,7 +270,7 @@ static inline void hash_enter(uint8_t* o,const uint8_t* s,uint64_t height) { } -static inline void hash_leave(uint8_t* o,const uint8_t* s,uint64_t height) { +static inline void hash_leave(uint8_t* o,const uint8_t* s,unsigned long long height) { uint8_t p[16]; if(height>=_VP1) { uint8_t s_enc[96]={0}; diff --git a/consensus/ethash_hash/xxenc.c b/consensus/ethash_hash/xxenc.c index aede4bcb..186eb64e 100644 --- a/consensus/ethash_hash/xxenc.c +++ b/consensus/ethash_hash/xxenc.c @@ -9,6 +9,7 @@ Public domain. #ifndef XXENC_H #define XXENC_H +#include #include /*