Bitcoin Forum
July 13, 2024, 08:49:40 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Mining (Altcoins) / Re: An (even more) optimized version of cpuminer (pooler's cpuminer, CPU-only) on: November 12, 2017, 05:28:24 PM
Very new here.

I know that is crazy, but i need a miner that just try one value.
Don't wan't to loop for each possible nonce, just try my value then wait next block.

My candidates changes are in cpu-miner.c

1106 static void *miner_thread(void *userdata)
1107 {
1108         struct thr_info *mythr = userdata;
1109         int thr_id = mythr->id;
1110         struct work work = {{'5','6'}}; // WAS struct work work = {{0}};

Then modify the max_nonce, somewhere here :
1202                 if (work.data[19] + max64 > end_nonce)
1203                         max_nonce = end_nonce;
1204                 else
1205                         max_nonce = work.data[19] + max64;
1206                 // ADDING SOMETHING HERE TO FORCE the max_nonce

But what value must i put in max_nonce ?

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!