0

The bitcoin network is decentralized, right?

Assumed, I do hash a little bit and get a hash that starts with 20 Zeros..

What do I do than? I need to send the block to someone but who is that? It's decentralized... Do I send it to all the other miners?

  • Bitcoin’s open source software does that for you. There’s no need to do it manually. If you insist on it though, i’d recommend reading the p2p code from the repo. – Monstrum Dec 16 '17 at 14:53
3

You don't tell a specific node on the network, but rather broadcast your block to the entire network. You essentially scream it from the rooftop.

If it's valid, it will be in the best interest of everyone to recognize your block and start mining on top of it.

  • "You essentially scream it from the rooftop" Ok, but how exactly? That's what I don't understand. – Alpha Dec 16 '17 at 14:53
  • You are connected to multiple nodes. You send it to all the nodes. – Jestin Dec 16 '17 at 14:57
  • And they will send it on to everyone they are connected to. – Pieter Wuille Dec 17 '17 at 1:50
2

You broadcast it to all the nodes you are connected to (usually at least 6), and they broadcast it to all the nodes they are connected to and so on. In this way it propagates across the whole network.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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