Since yesterday i'm working to adapt yiimp stratum from tpruvot to work with yescryptr16.
Has there is already yescrypt i added to yescrypt.c :
void yescryptR16_hash(const char *input, char *output, uint32_t len)
{
yescrypt_bsty((uint8_t*)input, len, (uint8_t*)input, len, 4096, 16, 1, (uint8_t*)output, 32);
}
tryed with 80 instead of len to force, but does not work.
+ .h and reference in stratum.cpp.
But it doesn't work.
All share goes in boo mode because they end up inside this part of the code :
// minimum hash diff begins with 0000, for all...
uint8_t pfx = submitvalues.hash_bin[30] | submitvalues.hash_bin[31];
if(pfx) {
#ifdef HASH_DEBUGLOG_
debuglog("Possible %s error, hash starts with %02x%02x%02x%02x\n", g_current_algo->name,
(int) submitvalues.hash_bin[31], (int) submitvalues.hash_bin[30],
(int) submitvalues.hash_bin[29], (int) submitvalues.hash_bin[28]);
#endif
client_submit_error(client, job, 25, "Invalid share", extranonce2, ntime, nonce);
return true;
}
The debug :
11:17:11: submit xxx.xxx.xxx.xxx (uid 2289) 637, 00000000, 59f5aaa0, ab4b9224
merkle root 891ba6f6a71526a098fc733843a14c0a7feeeae15d3adcbd74b49ee8ae50f882
0200000003ad4edd9d4327d01359626515304084e1f56c19ee3167575d5362f4eb000000891ba6f6a71526a098fc733843a14c0a7feeeae15d3adcbd74b49ee8ae50f882a0aaf559cd70011e24924bab
11:17:11: Possible yescryptR16 error, hash starts with e3317ecf
11:17:11: ERROR Invalid share, xxx.xxx.xxx.xxx subs 0, job 27d, 81000557, id 0, 4, 00000000, 59f5aaa0 ab4b9224
I'm using yenten windows miner.