Author

Topic: Conceptual Coding Question about the Bitcoin Client (Read 1490 times)

hero member
Activity: 910
Merit: 1000
Well I would suggest a lot more reading as there are concepts far more complex than this.  The answer is that they don't.  Bitcoin and other blockchain based networks are 'gossip networks'.  A node with new information (new txn, new block, new alert) notifies its direct peers.  Those peers verify/authenticate the new information and then notify their direct peers who verify it and forward it to their peers.  This process continues until all nodes are aware of the new information.

I suppose developers have stress-tested with junk (fake) data?
full member
Activity: 179
Merit: 151
-
Hi dain-001,

Have you read A Treatise on Altcoins? How familiar with cryptography are you? How about software engineering?
legendary
Activity: 1330
Merit: 1003
I'm trying to create a coin from scratch (without using Bitcoins code), to see how far i can get.
I was thinking a lot about how the clients work conceptually.

What i do not understand is how all the clients , with one with say, only 4 connections, all know, at the same time, each block, as its created, without them all being connected to one another at the same time.

How's it work?

edit: unrelated question: how was my post viewed 4 times the time i posted?  Huh

You should try reading the original whitepaper: https://bitcoin.org/bitcoin.pdf
donator
Activity: 1218
Merit: 1079
Gerald Davis
Well I would suggest a lot more reading as there are concepts far more complex than this.  The answer is that they don't.  Bitcoin and other blockchain based networks are 'gossip networks'.  A node with new information (new txn, new block, new alert) notifies its direct peers.  Those peers verify/authenticate the new information and then notify their direct peers who verify it and forward it to their peers.  This process continues until all nodes are aware of the new information.
newbie
Activity: 4
Merit: 0
I'm trying to create a coin from scratch (without using Bitcoins code), to see how far i can get.
I was thinking a lot about how the clients work conceptually.

What i do not understand is how all the clients , with one with say, only 4 connections, all know, at the same time, each block, as its created, without them all being connected to one another at the same time.

How's it work?

edit: unrelated question: how was my post viewed 4 times the time i posted?  Huh
Jump to: