Assumed, I hash the next bitcoin block. Whom do I tell if it's decentralized?

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?

ndsvw

Posted 2017-12-16T13:04:42.403

Reputation: 1 947

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 2017-12-16T14:53:40.490

Answers

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.

Jestin

Posted 2017-12-16T13:04:42.403

Reputation: 8 339

"You essentially scream it from the rooftop" Ok, but how exactly? That's what I don't understand.ndsvw 2017-12-16T14:53:17.527

You are connected to multiple nodes. You send it to all the nodes.Jestin 2017-12-16T14:57:26.010

And they will send it on to everyone they are connected to.Pieter Wuille 2017-12-17T01:50:40.410

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.

Adam Millerchip

Posted 2017-12-16T13:04:42.403

Reputation: 925