Author

Topic: New block communication between Node and Miner (Read 144 times)

newbie
Activity: 2
Merit: 0
February 19, 2022, 02:53:47 AM
#4
Thank-you @jack1cryptotalk007 for the comment, it was really helpful!

@NotFuzzyWarm, yes I do agree with you, I am just trying to understand how mining works under the hood.

Regards,
Sandy
legendary
Activity: 3612
Merit: 2506
Evil beware: We have waffles!
You are attempting a very useless project. Try reading the pinned message at the top of this area:
Quote
3. Mining BITCOIN is done exclusively with dedicated BITCOIN mining hardware based on ASICs - https://en.wikipedia.org/wiki/Application-specific_integrated_circuit . You CAN NOT meaningfully mine bitcoin today with CPU, GPU or even FPGAs. Bitcoin difficulty adapts to match the amount of mining done on the network and has reached levels trillions of times too high to mine meaningfully with PCs, laptops, tablets, phones, webpages, javascript, GPUs, and even generalised SHA hardware. You will not find software in this section to help you mine bitcoin in this absurdly inefficient manner in this subforum. It would cost you thousands of dollars in electricity per year to earn only a few cents in bitcoin. Even if you combined all the computers in the world, including all known supercomputer, you would not even approach 0.1% of the bitcoin hashrate today. Any discussion outside of ASIC related mining, except in the interests of academia, will be moved to the altcoin mining section. There isn't any point attempting to mine bitcoin with CPU or GPU even in the interests of learning as it shares almost nothing with how bitcoin is mined with ASICs and will not teach you anything.

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.
member
Activity: 60
Merit: 20
Hi All,

I have very basic question regarding communication between Full-Node and Solo-Miner, to understand bitcoin mining mechanism better. Say I have full-node running on one computer and solo-miner (cpuminer) running on another computer. How the miner get to know that the current block miner is mining has been found by any other miner and it needs to discard current work and move to new block? Do miner needs to keep polling node for new block information? Or will node communicate to miner that new block has been found?

Thanks,
Sandy

miner program (eg. cgminer) have a longpoll_thread which is keeping polling to full-node (eg. bitcoin core) in a speific seocnds. When a new block come out, height of block header is different, then, miner program go to get new block header's data to form a new block header to be hashed out.
newbie
Activity: 2
Merit: 0
Hi All,

I have very basic question regarding communication between Full-Node and Solo-Miner, to understand bitcoin mining mechanism better. Say I have full-node running on one computer and solo-miner (cpuminer) running on another computer. How the miner get to know that the current block miner is mining has been found by any other miner and it needs to discard current work and move to new block? Do miner needs to keep polling node for new block information? Or will node communicate to miner that new block has been found?

Thanks,
Sandy
Jump to: