How is the ledger kept consistent among differnt peers in blockchain

0 votes

In a blockchain system like bitcoin, each peer (participate node) keeps a full copy of the ledger. A peer updates its copy of ledger when it receives and validates a newly arrived block. However, the peers are scattered around the globe, and the network latency among these peers varies a lot. Therefore, how the blockchain system guarantees that all the peers have finished updating their copies of ledger after a block has been propagated?

May 26, 2018 in Blockchain by Shashank
• 10,400 points
1,646 views

1 answer to this question.

0 votes

Bitcoin doesn't guarantee that all ledgers become updated at the same time, bitcoin blockchain provides you with consistent ledger following:

  1. Proof-of-work to cut new block with set of transactions
  2. Longest chain rule

Above guaranties you that if there no more than 51% of the network controlled by one group you will eventually see consistent ledger, e.g. given your ledger at block sequence number 1001 means all nodes in the network will see identical chain of blocks until 1001.

To your question bitcoins use random overlay network to distribute new blocks (pretty similar to gossip algorithm).

answered May 26, 2018 by Johnathon
• 9,090 points

Related Questions In Blockchain