2012-08-07 19:56:43 +10:00
|
|
|
#ifndef SCRYPT_H
|
|
|
|
#define SCRYPT_H
|
|
|
|
|
2012-10-15 23:10:24 +11:00
|
|
|
#include "miner.h"
|
|
|
|
|
2012-08-07 19:56:43 +10:00
|
|
|
#ifdef USE_SCRYPT
|
2012-08-15 09:06:23 +10:00
|
|
|
extern bool scrypt_test(unsigned char *pdata, const unsigned char *ptarget,
|
|
|
|
uint32_t nonce);
|
2012-10-15 23:10:24 +11:00
|
|
|
extern void scrypt_outputhash(struct work *work);
|
|
|
|
|
2012-08-07 19:56:43 +10:00
|
|
|
#else /* USE_SCRYPT */
|
2012-08-15 09:06:23 +10:00
|
|
|
static inline bool scrypt_test(__maybe_unused unsigned char *pdata,
|
|
|
|
__maybe_unused const unsigned char *ptarget,
|
|
|
|
__maybe_unused uint32_t nonce)
|
2012-08-07 19:56:43 +10:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2012-10-15 23:10:24 +11:00
|
|
|
|
2012-10-17 09:35:29 +11:00
|
|
|
static inline void scrypt_outputhash(__maybe_unused struct work *work)
|
2012-10-15 23:10:24 +11:00
|
|
|
{
|
|
|
|
}
|
2012-08-07 19:56:43 +10:00
|
|
|
#endif /* USE_SCRYPT */
|
|
|
|
|
|
|
|
#endif /* SCRYPT_H */
|