Bitcoin Forum
September 27, 2018, 10:44:28 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Conceptual Coding Question about the Bitcoin Client  (Read 1419 times)
dain-001
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
1538088268
Hero Member
*
Offline Offline

Posts: 1538088268

View Profile Personal Message (Offline)

Ignore
1538088268
Reply with quote  #2

1538088268
Report to moderator
1538088268
Hero Member
*
Offline Offline

Posts: 1538088268

View Profile Personal Message (Offline)

Ignore
1538088268
Reply with quote  #2

1538088268
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538088268
Hero Member
*
Offline Offline

Posts: 1538088268

View Profile Personal Message (Offline)

Ignore
1538088268
Reply with quote  #2

1538088268
Report to moderator
DeathAndTaxes
Donator
Legendary
*
Offline Offline

Activity: 1218
Merit: 1005


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: 1260
Merit: 1002


dApps Development Automation Platform


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


            ▄▄▄▄
        ▄▄████████▄▄
    ▄▄████████████████▄▄
 ▄████████████████████████▄
██████████▀▀███████████████
██████████▄   ▀█████████████
████████████▄   ▀███████████
██████████████▄   ▀█████████
█████████████▀   ▄██████████
███████████▀   ▄████████████
██████████▄  ▄██████████████
███████████████████████████
 ▀████████████████████████▀
    ▀▀████████████████▀▀
        ▀▀████████▀▀
            ▀▀▀

⬢⬢

⬢⬢



       ▄▄▄▄
   ▄▄████████▄▄
▄██████████▀▀▀█▀█▄
██ ▀█████▀     ▀██
██▌   ▀▀▀      ███
███▄           ███
████▀         ████
▀████▄     ▄▄████▀
   ▀▀▄▄▄▄████▀▀
       ▀▀▀▀


██████████████████



       ▄▄▄▄
   ▄▄████████▄▄
▄████████████████▄
██████████▀▀  ▐███
██████▀▀  ▄   ████
███▀   ▄█▀   ▐████
████▄▄█▀     █████
▀█████▌ ▄▄▄ ▐████▀
   ▀▀████████▀▀
       ▀▀▀▀


██████████████████



       ▄▄▄▄
   ▄▄████████▄▄
▄███████▀   ▐████▄
████████  ▄███████
██████      ██████
████████  ████████
████████  ████████
▀███████  ███████▀
   ▀▀████████▀▀
       ▀▀▀▀


██████████████████



       ▄▄▄▄
   ▄▄██▀█▀███▄▄
▄███▀▀▀ ▀ ▀▀█████▄
██████ ████▄ █████
██████ ▀▀▀▀ ▄█████
██████ ▄▄▄▄ ▀█████
██████ ████▀ █████
▀███▄▄▄ ▄ ▄▄█████▀
   ▀▀██▄█▄███▀▀
       ▀▀▀▀


██████████████████
andytoshi
Full Member
***
Offline Offline

Activity: 172
Merit: 102

-


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!