Author

Topic: compile Cgminer (0.1btc) (Read 458 times)

member
Activity: 71
Merit: 10
February 09, 2014, 03:03:11 AM
#1
Hello
I need you compile Cgminer from

https://github.com/Eropi4/cgminer_keccak/


You have to change in file keccak.c

old function
void Hash3(uint256 *pResult, unsigned char const *pbegin, unsigned char const *pend)
{
 uint256 hash1;
 uint256 hash2;
 crypto_hash((unsigned char*)&hash1, pbegin, (pend - pbegin) * sizeof(pbegin[0]));
 crypto_hash((unsigned char*)&hash2, (unsigned char*)&hash1, sizeof(hash1));
 *pResult = hash2;
}


to that one:

void Hash3(uint256 *pResult, unsigned char const *pbegin, unsigned char const *pend)
{
 uint256 hash1;
 crypto_hash((unsigned char*)&hash1, pbegin, (pend - pbegin) * sizeof(pbegin[0]));
 *pResult = hash1;
}


Idea is to remove double hashing.
Skype for connection vlaage
give 0.1 BTC
Jump to: