Bitcoin Forum
May 12, 2024, 10:06:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do miners communicate through the network?  (Read 1125 times)
Stampbit (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100



View Profile
April 12, 2013, 05:25:55 PM
 #1

I'd like to know more about how miners communicate, for instance is it like bittorrent where nodes in the swarm connect to a small number of other nodes, or are miners connected to every other miner? What sort of information do they exchange? What sort of information can they collect on eachother or broadcast about themselves?
1715508386
Hero Member
*
Offline Offline

Posts: 1715508386

View Profile Personal Message (Offline)

Ignore
1715508386
Reply with quote  #2

1715508386
Report to moderator
Whoever mines the block which ends up containing your transaction will get its fee.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715508386
Hero Member
*
Offline Offline

Posts: 1715508386

View Profile Personal Message (Offline)

Ignore
1715508386
Reply with quote  #2

1715508386
Report to moderator
eleight
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
April 12, 2013, 05:28:10 PM
 #2

check this out https://www.btcguild.com/new_protocol.php
Stampbit (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100



View Profile
April 12, 2013, 05:30:53 PM
 #3


Is that to solve the blocksize bandwidth problem? I wanted to know how the current system works, this appears to be something else.
Moonchopper
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
April 12, 2013, 06:57:05 PM
 #4

Stratum is currently in use and I believe it's being used more and more. I believe this means that miners operate/communicate several different ways, not just 'one' way.
Stampbit (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100



View Profile
April 12, 2013, 07:08:51 PM
 #5

So its really up to the developers of the bitcoin clients how and what information gets passed. And there are different system where clients connect to all other clients and other where clients to connect to only some other clients, and some like stratum where clients connect to a server?
Moonchopper
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
April 12, 2013, 07:35:29 PM
 #6

That seems like a correct statement - but I'm fairly new to all of this myself, so it may not be exactly as you describe.
A Meteorite
Full Member
***
Offline Offline

Activity: 120
Merit: 100


View Profile WWW
April 12, 2013, 10:44:45 PM
 #7

Except for p2pool, pool mining is centralized - meaning they connect to a pool server (which usually gets work from bitcoind) and get work from that server. They find shares and submit it to the pool server.

In the case of p2pool, there's software you run in addition to bitcoind. p2pool gets work from bitcoind, messes with the coinbase, and then gives work to miners. Miners submit shares and if it's above the p2pool difficulty, it goes into the sharechain. The sharechain is very much like the blockchain, except average time between shares is 10 seconds. This is used to determine how much each miner should get paid out. It also makes pool mining decentralized.

As for as protocols between mining software and the servers (whether centralized or a p2pool daemon), there are a few. There is getblocktemplate, Stratum, getwork, BlkPrep, and UBBP. GBT and Stratum are becoming the most popular, while getwork is being phased out (lots of bandwidth, less flexible, and very hard on bitcoind). BlkPrep and UBBP are niche protocols - I'm not sure if any pools still use them.

Except for p2pool, miners do not communicate peer to peer like you thought. Even with p2pool, it's only the p2pool software that is communicating with other p2pool nodes (like bitcoind does), the mining software itself is practically oblivious.

BTC: 1MeTeorfxZNsY6gJDBtrF8JA8KEv6SKGUmLTC: Lejxgou6hUkjupF6RoruxJGG9AQ7t3ovYt
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!