Analysis of Ethereum GHOST Agreement

GHOST is called Greedy Heaviest-Observed Sub-Tree, the most observable subtree protocol for greed. Unlike the longest chain principle in Bitcoin, Ethereum uses the GHOST protocol to determine the main chain by judging the heaviest subtree.

Algorithm Description

Algorithm for selecting a block as the main chain

Input: Block tree T 1. set B ← Genesis Block 2. if ChildrenT (B) = ∅ then return(B) and exit 3. else update B ← argmax |subtreeT (C)| C∈ChildrenT (B) 4. goto line 2 

ChildrenT (B) returns the set of sub-blocks of B; subtreeT(C) returns the weight of the root tree with C

Beginning with the Genesis block, initialize B to the genesis block;

Determine whether the subtree of B is an empty set, and if it is empty, indicating that no subblock is currently the main chain, return B block and exit;

Otherwise update B is the sub-block with the heaviest subtree;

Go to step 2 and continue to find the next block of the main chain;

Ethereum and Bitcoin's main chain selection

The block weight is the number of valid blocks in the tree root (difficulty accumulation)

As can be seen from the above figure, using the longest chain principle in Bitcoin, 0<-1B<-2D<-3F<-4C<-5B is the longest main chain; the most heavy subtree principle is used in Ethereum 0<-1B <-2C<-3D<-4B is the heaviest main chain

Uncle block reward

Basic content :

1. The main chain block gets the basic reward (3Eth)

2. One block refers to at most two unblocks

3. Contains a non-block to get 1/32 of the mining reward

Calculation formula :

 ((叔块高度+8-当前块的高度)/8 )*base reward 

The transaction fee is not assigned to the uncle block. The difference between the current block height and the uncle block height is 8 (or more).

GHOST advantages

1. Security is independent of the block speed, which guarantees the expansion of GHOST (no reduction in interval due to reduced time, up to 200tps)

2. Solve the problem of lone block reward and encourage miners to participate in the block

3. Demonstrate that blindly increasing TPS is not feasible by increasing the block rate and block size.

summary

The ghost protocol uses the most heavy chain principle to improve system security;

Increased the reward for the uncle block and encouraged the miners to participate;

However, the current tps is still not high (10-20) and requires the participation of other expansion plans;

Reference link:

Http://www.jouypub.com/2018/9b19cff7135411bd37356e6c4f5f63b7/

Https://github.com/nebulasio/consensus-survey/blob/master/ch/main.pdf

We will continue to update Blocking; if you have any questions or suggestions, please contact us!

Share:

Was this article helpful?

93 out of 132 found this helpful

Discover more

Blockchain

Thousands of exchange platform license thresholds reach the cloud or 5 platforms enter the Hong Kong Securities Regulatory Commission's sandbox

Source: 21st Century Business Herald Author: Zhou scorching The confrontation between the United States and Iran has ...

Blockchain

FCoin's self-help campaign

The FCoin that stirred the entire exchange industry last year seems to be back after a long silence. Since February, ...

Blockchain

Sun Yuchen used capital hegemony to control Steem, causing controversy, the integrity of stolen users' voting rights was questioned

Recently, in order to prevent capital power on the chain, Steem witness nodes jointly launched a soft fork. God V des...

Blockchain

Market Weekly | The market is in a consolidation period, and the exchange has picked up

Weekly summary Last week, the average daily market value of global digital currency assets was 326.973 billion US dol...

Blockchain

WIRED Investigating the Mysterious Hacker Incident on the Day of FTX Bankruptcy

Author | Wired Translated | Wu Shuo Blockchain Original Link https//www.wired.com/story/ftx-1-billion-crypto-heist/ w...

Blockchain

How to "shock reduction" The risk control method of the head digital currency institution

Text | Editing by Li Zheweng | Produced by Bi Tongtong | PANews Risk is a word derived from the Italian word "RI...