The Paradigm
The blockchain paradigm maintains that many interesting block chains differ only by the way they resolve conflict. That is, the chain selection rule they follow.
So to describe the paradigm, I owe you two things: an abstract definition of a chain selection rule, and a concrete description of what miners do with this chain selection rule. This is the purpose of thee current section. Once it is concluded, owe you a third explanation: why should miners follow the expected behavior? This will be addressed in the following two sections.
Block Validity
One issue we need to get out of the way is block validity. We all know that blocks can be invalid. They can have corrupt headers, illegal transactions, bad nonce, etc. Obviously a part of the miner's work is to verify the validity of each block before even considering it.
Verifying block validity is not trivial, and we will have much to say about it, especially in the context of GHOSTDAG. But for now, we treat it as somebody else's problem and assume all blocks that arrive at our networks are validated for us, and discarded if they fail.
Chain Selection Rules
A chain selection rule has a very simple task. It is given a tree and outputs a tip. Why do we call it a chain selection rule if it outputs a tip? Well, recall that each tip of the tree defines a unique chain to the root/genesis.
The tree we feed into this chain selection rule is the tree of blocks created by the network (or at least those available to us).
Given a selected tip we call the selected chain or just the chain. Blocks on this chain are called included, and the remaining blocks are called orphans.

Breaking Ties
Chain selection rules sometimes run into ties. Situations where they have to decide between "equal" options. For example, consider a situation like this:

Which tip should the chain rule prefer, or ? For most of the chain rules we will see, there is no natural way to choose between them. For example, we have not introduced the longest chain rule yet, but it does not require a wild stretch of the imagination to get convinced that the selected chains of and have the same length. So how should this tie be broken?
Like pretty much everything that has anything to do with blockchains, choosing a tie-breaking rule might seem innocuous, but in practice, a bad tie-breaking rule could have adverse consequences. For example, if the rule is "gameable" (that is, there are ways for large miners to increase their probability of winning the tie break), it would exacerbate an already existing problem called selfish mining, that we will describe later in this chapter.
A crucial observation is that the tie breaking rule itself doesn't have to be in consensus. The situation where miners "split" to mine over different blocks is unavoidable. For example, in the situation depicted in the illustration above, there will plausibly be some nodes that heard of first and other nodes that heard of first. It is impossible to avoid these situations. The chain rule provides us with a consensus of the winner after the tie has been broken. But who shall this winner be? That's anybody's game.
Note that this also means that tie-breaking rules cannot be enforced. There is no way to force a miner to mine over block when they "should have" mined over block , as they could always claim the block never reached them. The best we can do is suggest a tie-breaking rule that is aligned with the miners' incentives.
In Bitcoin, miners mine over the block they observed first. This makes sense from the miner's point of view: if arrived at some miner earlier than , then it is plausible that, in general, was created earlier or by a more well connected miner. That's good grounds to assume most of the network mines over , increasing the probability that is forked away, making mining over it a wasted effort.
The Block Chain Paradigm (at last)
The block chain paradigm translates a chain selection rule to the following protocol:
Miners mine above the selected tip
Whenever a miner discovers a new block (by mining it or from a peer), they send it to their peers and recompute the selected tip
Simpler than you expected? That's a good sign. It means we did a good job encapsulating away the tedious details.
Last updated