2

I couldn't find the answer anywhere so I start a thread.

  1. How do mining pools connect to the Bitcoin network to propagate transactions and blocks? Do they run their own full node? If yes, how many of full nodes? I presume it's hard to run a mining pool with only one full node because it's IP will be exposed to some network attack like DDoS.
  2. How do miners connect to a pool? Is there any server running by mining pools so miners can connect to?

2 Answers 2

2

How do mining pools connect to the Bitcoin network to propagate transactions and blocks?

They connect in the same way that everyone else connecting to the Bitcoin network does. Miners are still nodes, they do everything that a full node does.

Do they run their own full node?

Yes.

If yes, how many of full nodes?

At least one. It doesn't matter how many nodes a miner is running, so long as they are running a node. At least one node is needed in order for them to see transactions and blocks and for them to broadcast their own blocks. Large mining operations may have multiple full nodes. Small ones may only have one. It is difficult to know how many and what nodes belong to miners as they look like any other node on the network.

How do miners connect to a pool? Is there any server running by mining pools so miners can connect to?

Mining pools operate servers which give out work to miners with that pool. The miners have to connect to those servers in order to get work to do. They can connect using a variety of protocols. The two protocols in use today are stratum and getblocktemplate.

1

Mining pools connect to the P2P network by running their own nodes.

Theoretically, they could avoid running a node but then they would be exposed to mining invalid transactions and on invalid chains, so this would be pretty foolish.

I've recommended that miners in the past run one or more private nodes that accept no incoming connections to generate their work. These private nodes then connect out only to public nodes they run on unrelated networks and a small number of well selected third party nodes. I've also seen that plenty of miners have ignored advice like this, and sometimes they get DOS attacked.

Public mining pools advertise locations for their users to connect to. Some have private alternative addresses for high hashrate users to reduce exposure to attack.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.