Bitcoin Forum
May 07, 2024, 06:05:49 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: New block communication between Node and Miner  (Read 144 times)
MotifTech (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 01, 2022, 06:53:51 AM
Last edit: February 01, 2022, 07:18:32 AM by MotifTech
 #1

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
1715061949
Hero Member
*
Offline Offline

Posts: 1715061949

View Profile Personal Message (Offline)

Ignore
1715061949
Reply with quote  #2

1715061949
Report to moderator
1715061949
Hero Member
*
Offline Offline

Posts: 1715061949

View Profile Personal Message (Offline)

Ignore
1715061949
Reply with quote  #2

1715061949
Report to moderator
1715061949
Hero Member
*
Offline Offline

Posts: 1715061949

View Profile Personal Message (Offline)

Ignore
1715061949
Reply with quote  #2

1715061949
Report to moderator
The forum was founded in 2009 by Satoshi and Sirius. It replaced a SourceForge forum.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715061949
Hero Member
*
Offline Offline

Posts: 1715061949

View Profile Personal Message (Offline)

Ignore
1715061949
Reply with quote  #2

1715061949
Report to moderator
1715061949
Hero Member
*
Offline Offline

Posts: 1715061949

View Profile Personal Message (Offline)

Ignore
1715061949
Reply with quote  #2

1715061949
Report to moderator
1715061949
Hero Member
*
Offline Offline

Posts: 1715061949

View Profile Personal Message (Offline)

Ignore
1715061949
Reply with quote  #2

1715061949
Report to moderator
jack1cryptotalk007
Member
**
Offline Offline

Activity: 60
Merit: 20


View Profile
February 16, 2022, 07:03:40 AM
 #2

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.
NotFuzzyWarm
Legendary
*
Offline Offline

Activity: 3626
Merit: 2533


Evil beware: We have waffles!


View Profile
February 16, 2022, 12:34:36 PM
Merited by hugeblack (2)
 #3

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.

- For bitcoin to succeed the community must police itself -    My info useful? Donations welcome! 1FuzzyWc2J8TMqeUQZ8yjE43Rwr7K3cxs9
 -Sole remaining active developer of cgminer, Kano's repo is here
-Support Sidehacks miner development. Donations to:   1BURGERAXHH6Yi6LRybRJK7ybEm5m5HwTr
MotifTech (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
February 19, 2022, 06: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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!