X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fscrypt_mine.h;h=0260cdee9d523f43ed57fe5806b94d13aeb7f509;hb=59a5b3624068f152efe55968ba77eb10a8e8f945;hp=58f25f31c16d50c57b9591c58dcaf15afa044283;hpb=e45b499e2f6f78923d9f6df7a839f091eeb9b6fd;p=novacoin.git diff --git a/src/scrypt_mine.h b/src/scrypt_mine.h index 58f25f3..0260cde 100644 --- a/src/scrypt_mine.h +++ b/src/scrypt_mine.h @@ -1,30 +1,24 @@ -#ifndef SCRYPT_MINE_H -#define SCRYPT_MINE_H - -#include -#include - -#include "util.h" -#include "net.h" - -typedef struct -{ - unsigned int version; - uint256 prev_block; - uint256 merkle_root; - unsigned int timestamp; - unsigned int bits; - unsigned int nonce; - -} block_header; - -void *scrypt_buffer_alloc(); -void scrypt_buffer_free(void *scratchpad); - -unsigned int scanhash_scrypt(block_header *pdata, void *scratchbuf, - uint32_t max_nonce, uint32_t &hash_count, - void *result, block_header *res_header); - -void scrypt_hash(const void* input, size_t inputlen, uint32_t *res, void *scratchpad); - -#endif // SCRYPT_MINE_H +#ifndef SCRYPT_MINE_H +#define SCRYPT_MINE_H + +#include +#include + +#include "util.h" +#include "net.h" + +typedef struct +{ + unsigned int version; + uint256 prev_block; + uint256 merkle_root; + unsigned int timestamp; + unsigned int bits; + unsigned int nonce; +} block_header; + +void *scrypt_buffer_alloc(); +void scrypt_buffer_free(void *scratchpad); +void scrypt_hash(const void* input, size_t inputlen, uint32_t *res, void *scratchpad); + +#endif // SCRYPT_MINE_H