Author

Topic: How to get block header from cpuminer (Read 75 times)

newbie
Activity: 2
Merit: 0
April 21, 2021, 06:52:27 PM
#3
I know that the probability of mining bitcoins with a laptop is almost zero.
But my goal is not to mine bitcoins and get rich. I want to learn the mining process and as a result I asked the above questions.
So if you know the answers to the above questions or can you help, thank you very much.
legendary
Activity: 3598
Merit: 2490
Evil beware: We have waffles!
April 21, 2021, 03:55:24 PM
#2
You CANNOT mine Bitcoin using a CPU no matter how fast your computer is...
Please ref https://bitcointalksearch.org/topic/bitcoin-mining-intro-rules-of-this-subforum-read-before-posting-2415854 point 3.

TL/DR Summary:
 - You CANNOT meaningfully mine bitcoin with your PC or laptop no matter how powerful it is.
 - You CANNOT meaningfully mine bitcoin with your tablet or phone no matter how powerful it is.
 - Mining apps for your phone or tablet that claim to mine bitcoin are almost certainly scams.
 - You CANNOT find software here to mine bitcoin with your PC by itself.
 - You MIGHT be able to do one of the above with altcoins, but such discussion goes into the altcoin mining section.
 - You CANNOT find or post software here to mine on other peoples' PC without their permission.

Other coins (alts), maybe you can use it but that all depends on what coin - and FYI, discussion of any coin other than BTC will be moved by moderators to the altcoin areas.
newbie
Activity: 2
Merit: 0
April 21, 2021, 03:31:14 PM
#1
I am new to bitcoin mining.
I want to give unique number to the cpuminer.
How can I do this ? ( I set this unique nonce myself. )
Also for this nonce, I need block header parameters in the moment.
How can I get this parameters from cpuminer ?
My last question is how to integrate these components with my unique nonce and get the block's hash ? ( That is, how do I import these parameters as input to the SHA-256 function ? )

I am happy with any guidance.
Jump to: