mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-09 14:28:12 +00:00
Rename scrypt regenhash function for consistency.
This commit is contained in:
parent
daea9c95a7
commit
a6250fbb96
@ -3249,7 +3249,7 @@ static void regen_hash(struct work *work)
|
|||||||
static void rebuild_hash(struct work *work)
|
static void rebuild_hash(struct work *work)
|
||||||
{
|
{
|
||||||
if (opt_scrypt)
|
if (opt_scrypt)
|
||||||
scrypt_outputhash(work);
|
scrypt_regenhash(work);
|
||||||
else
|
else
|
||||||
regen_hash(work);
|
regen_hash(work);
|
||||||
|
|
||||||
|
2
scrypt.c
2
scrypt.c
@ -405,7 +405,7 @@ static void scrypt_1024_1_1_256_sp(const uint32_t* input, char* scratchpad, uint
|
|||||||
/* 131583 rounded up to 4 byte alignment */
|
/* 131583 rounded up to 4 byte alignment */
|
||||||
#define SCRATCHBUF_SIZE (131584)
|
#define SCRATCHBUF_SIZE (131584)
|
||||||
|
|
||||||
void scrypt_outputhash(struct work *work)
|
void scrypt_regenhash(struct work *work)
|
||||||
{
|
{
|
||||||
uint32_t data[20];
|
uint32_t data[20];
|
||||||
char *scratchbuf;
|
char *scratchbuf;
|
||||||
|
4
scrypt.h
4
scrypt.h
@ -6,7 +6,7 @@
|
|||||||
#ifdef USE_SCRYPT
|
#ifdef USE_SCRYPT
|
||||||
extern bool scrypt_test(unsigned char *pdata, const unsigned char *ptarget,
|
extern bool scrypt_test(unsigned char *pdata, const unsigned char *ptarget,
|
||||||
uint32_t nonce);
|
uint32_t nonce);
|
||||||
extern void scrypt_outputhash(struct work *work);
|
extern void scrypt_regenhash(struct work *work);
|
||||||
|
|
||||||
#else /* USE_SCRYPT */
|
#else /* USE_SCRYPT */
|
||||||
static inline bool scrypt_test(__maybe_unused unsigned char *pdata,
|
static inline bool scrypt_test(__maybe_unused unsigned char *pdata,
|
||||||
@ -16,7 +16,7 @@ static inline bool scrypt_test(__maybe_unused unsigned char *pdata,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void scrypt_outputhash(__maybe_unused struct work *work)
|
static inline void scrypt_regenhash(__maybe_unused struct work *work)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endif /* USE_SCRYPT */
|
#endif /* USE_SCRYPT */
|
||||||
|
Loading…
Reference in New Issue
Block a user