Bitcoin Forum
June 16, 2024, 09:33:07 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Conceptual Coding Question about the Bitcoin Client  (Read 1482 times)
dain-001 (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 12, 2015, 02:43:04 AM
 #1

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
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1079


Gerald Davis


View Profile
February 12, 2015, 02:54:51 AM
 #2

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.
Razick
Legendary
*
Offline Offline

Activity: 1330
Merit: 1003


View Profile
February 12, 2015, 12:22:36 PM
 #3

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

ACCOUNT RECOVERED 4/27/2020. Account was previously hacked sometime in 2017. Posts between 12/31/2016 and 4/27/2020 are NOT LEGITIMATE.
andytoshi
Full Member
***
Offline Offline

Activity: 179
Merit: 151

-


View Profile
February 16, 2015, 02:53:45 AM
 #4

Hi dain-001,

Have you read A Treatise on Altcoins? How familiar with cryptography are you? How about software engineering?
coinpr0n
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1000



View Profile
February 17, 2015, 10:49:42 AM
 #5

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?

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!