DotNetStratumMiner icon indicating copy to clipboard operation
DotNetStratumMiner copied to clipboard

Question about the code.

Open apresmoi opened this issue 7 years ago • 3 comments

Hello, I saw that your code uses Scrypt. What's the difference between using scrypt and double sha256?

Thanks.

apresmoi avatar Jul 28 '17 01:07 apresmoi

I mean, if I were to use this algorithm to mine with sha256, should I modify anything in the sequence of the hash sequence? Or just do a double sha256 instead of the scrypt? (Since they both return a 32bit sequence)

apresmoi avatar Jul 28 '17 11:07 apresmoi

Change to use sha256d for hashing function. It should work.

shtse8 avatar Dec 27 '17 15:12 shtse8

Hi,

I'm so sorry for asking a very basic question but I couldn't find any info on internet. I just updated doScrypt() function in order to use SHA256 with just adding two lines bellow and connected to "btc.f2pool.com" for live testing, but whenever SW post a share, I always get "Share rejected" error.

SHA256Result = mySHA256.ComputeHash(Databyte); ScryptResult = mySHA256.ComputeHash(SHA256Result);

I got no extra info, so what could be wrong ? And how can I get approved nonce for this job ?

There is a sample just above of GenerateMerkleRoot() function which helps me to validate my results but by somehow if I could get a nonce of a job, I can backtrace and find my problem.

Could you please help me on this ?

Best Regards, Bora

boratuncer avatar Sep 27 '22 17:09 boratuncer