Bitcoin Forum
June 22, 2024, 12:43:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Other / Beginners & Help / cgminer use only cpu on: July 25, 2011, 02:39:06 PM
How can I force cgminer to use only the CPU? because I am getting the following error:
"Error: Getting Device IDS <num>"
clDevicesNum returned error

I am using the following args: cgminer -o server:port -u username -p password -t 1 -g 0
2  Other / Beginners & Help / Mining algorithm on: July 25, 2011, 02:19:56 PM
Hi, I read the entire wiki, also read some code in C and python. Here is what I understood about the mining algorithm:
 - GetWork using RPC call
 - Read the 'data' section in the result in JSON returned from the server. Decode it into binary and change the byte ordering so that reflects the little-endian format (should I rotate chunks of 4 byte or byte per byte?)
 - Read the 'nonce' value, which is stored in byte from '76' to '80'.
 - Try incrementing the nonce value in the data, and then hash the 'data' with the modified nonce, and re-hash the result.
 - Check if the generated hash's value (converted to a number) is less than that of the target (which is a number stored as HEX).
 - If that is true, send the modified header to the daemon.

Is that right? Thank you.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!