The Blockchain Folk Theorem
The Blockchain Folk Theorem
Preliminary
Abstract
Blockchains are distributed ledgers, operated within peer-to-peer
networks. If reliable and stable, they could offer a new, cost effective,
way to record transactions and asset ownership, but are they? We
model the blockchain as a stochastic game and analyse the equilib-
rium strategies of rational, strategic miners. We show that mining the
longest chain is a Markov perfect equilibrium, without forking on the
equilibrium path, in line with the seminal vision of Nakamoto (2008).
We also clarify, however, that the blockchain game is a coordination
game, which opens the scope for multiple equilibria. We show there
exist equilibria with forks, leading to orphaned blocks and also possibly
to persistent divergence between different chains.
∗
We thank V. Glode, B. Gobillard, I. Goldstein, C. Harvey, J. Hörner, A. Kirilenko,
T. Mariotti, J. Tirole, S. Villeneuve, the members of the TSE Blockchain working group,
participants in the Inquire Conference in Liverpool, 2017, participants in the GSE Summer
Forum in Barcelona, 2017, the Africa Meeting of the Econometric Society in Algiers, 2017,
the RFS Fintech workshop, 2017, as well as an anonymous referee for helpful comments.
Financial support from the FBF-IDEI Chair on Investment banking and financial markets
value chain is gratefully acknowledged. This research also benefited from the support of
the Europlace Institute of Finance, and the Jean-Jacques Laffont Digital chair.
†
Toulouse School of Economics, CNRS (TSM-Research)
‡
Toulouse School of Economics, Université Toulouse Capitole (TSM-Research)
§
Desautels Faculty of Management, McGill University
¶
Toulouse School of Economics, Université Toulouse Capitole (TSM-Research)
1
1 Introduction
Blockchains are decentralised protocols for recording transactions and asset
ownership. In contrast with centralised protocols in which one authority
is in charge of recording or certifying transactions in a unique centralised
ledger, blockchain operates within a network, whose participants each possess
and update their own version of the ledger. The blockchain design was the
main innovation underlying the digital currency network Bitcoin (Nakamoto,
2008), but its potential benefits in terms of cost-efficiency, speed and secu-
rity, for a variety of assets and contracts, have attracted interest from a
broad range of institutions and businesses.1 Blockchain experiments, and
in some cases, deployments, have been conducted by the Australian Stock
Exchange, the Nasdaq, BHP Billiton and major banks around the globe. As
blockchains are being embedded into major transaction platforms, we pro-
pose to investigate the stability of the protocol: how efficient is a blockchain
at building a stable consensus among participants about the history of past
transactions? This question is particularly relevant in public blockchains
where participants are anonymous and no formal authority may coordinate
their behaviour in last resort.2 Our game-theoretic approach pins down the
tradeoffs faced by the key players in a blockchain’s decentralised certification
process, the “miners.”
We study the protocol known as “proof-of-work” that miners follow to
build consensus.3 This protocol, which we describe in more details in the
next section, can be sketched as follows. At each point in time, miners
try to validate a new block of transactions. This implies verifying that the
transactions in the block do not contradict each other or past transactions,
but also solving a purely numerical problem unrelated to the block’s content,
i.e., “mining.” The first miner to solve this problem obtains a proof-of-work,
which he attaches to the new block before diffusing it to the network. Hence,
the identity of the miner who validates a given block is the outcome of a
random draw in which each miner’s probability of winning is his share of
1
The blockchain is cost effective in that the administrative costs of running it are limited
compared to those incurred within older technologies and institutions, such as notaries,
banks or depositories.
2
Bitcoin and Ethereum are best-known examples of public blockchains. There also exist
private blockchains, which use the same technology, but whose participants are selected
and which can have specific coordination devices. Our paper focuses on public blockchains.
3
Major public blockchains such as Bitcoin or Ethereum run on proof-of-work protocols.
2
the total computing power in the network. This ensures that miners take
turns to validate blocks, and therefore no single miner has control over the
whole verification process. When a new block is diffused to the network, it
becomes part of the consensus if miners express acceptance by chaining to it
their next block. Each block includes a reward for the miner who solved it.
This process illustrated in Figure 1.
B1 B2 B3
time
0 t1 t2 t3
3
Original chain
B1 Bn−1 Bn Bn+1
0
Bn
Fork
t
0 t1 tn−2 tn−1 tn
Figure 2: A fork
4
solving blocks on a given chain has a vested interest in this chain remaining
active. In particular, the value of these rewards would drop if he moved
to a different chain. Vested interests may counteract coordination motives
for a group of miners, inducing them to keep mining a minority chain, and
sustaining persistent forks in equilibrium (Proposition 3). Unlike temporary
forks that only rely on coordination motives and would arise with atomistic
miners, equilibria with persistent forks depend on miners internalising how
their actions affect the value of their rewards.
Overall, this analysis suggests that the blockchain design, by generating
complementarities and vested interest, is subject to instability. Next, we
investigate how frictions typically associated with dissensus and forks relate
to these economic forces. For instance, communication delays may generate
transient forks as some miners do not immediately realise that a new block
has been solved. Some miners may also derive extrinsic benefits from creat-
ing a fork: it can allow them to void previous transactions and recover the
corresponding cryptocurrencies (“double-spending”), or to push technical so-
lutions that give them a competitive edge (“upgrades”). We incorporate these
frictions in our model and show that while they may act as triggers (instead
of sunspots), the same fundamental interplay of coordination motives and
vested interests as in the frictionless case underlies equilibria with forks.
Finally, we endogenise the computing capacity that each miner installs.
Because the difficulty of the mining process is typically adjusted upwards
when the total computing capacity in the network increases, a miner’s invest-
ment in computing power exerts a negative externality on all other miners.
This gives rise to an arms race in which each miner ends up over-investing
(not unlike the over-investment in financial expertise noted by Glode, Green
and Lowery (2012)). This analysis points to another source of inefficiency in
the blockchain’s decentralised design.
5
chain. Eyal and Sirer (2014) show how colluding miners can obtain a larger
revenue than their fair shares. Teusch, Jain and Saxena (2016) study how
a strategic miner can fork and attack the blockchain to double spend. The
paper to which our analysis is the closest is Kroll, Davey and Felten (2013).
They note that the interaction between miners should be analysed as a game.
They argue that the LCR is a Nash equilibrium. While their analysis offers
interesting economic intuition, it does not offer a formal analysis and proof
of equilibrium. Another difference between our analysis and theirs is our
analysis of forks on the equilibrium path.
Several papers (e.g., Evans, 2014) note that an additional problem with
the Bitcoin mining incentive scheme is that miners are paid with bitcoins,
which have a volatile value. In our analysis, the only source of variation
in the value of rewards to a given block is the extent to which the chain
including that block is actively mined. We analyse how these variations
affect incentives. Schrijvers et al. (2016) study a different type of incentive
problems than that we consider. They study the behaviour of miners in a
pool, assuming that the pool organiser does not observe when miners solve
blocks nor the computing power they dedicate to that task. They analyse
how to incentivise miners to reveal that they have solved a block as soon as
they have done so.
The remainder of the paper is organised as follows. The next section offers
an introduction to blockchain environments. Section 3 presents the model.
Section 4 develops our equilibrium analysis and contains our main results.
Extensions of the model are provided in Sections 5 and 6, and Section 7
concludes. All proofs are in the Appendix.
2 A primer on blockchains
In this section we first describe the blockchain protocol and then discuss some
problems that can arise in blockchains.
6
a central authority, e.g., the state and its delegates, ensured this consensus
by managing and certifying the ledger. Such centralised ledgers, however,
cannot operate satisfactorily if the central authority behaves opportunisti-
cally, e.g., by excluding some participants or transactions, or by distorting
the ledger.
The distributed ledger technology (DLT) can overcome that obstacle.
Within a distributed ledger, there is a network of participants, and each
participant maintains its own ledger. When an economic transaction occurs,
the trading parties send this information to the network, so that it can be
validated by the network participants, each including it into his or her own
ledger. Ledgers should eventually be the same for all participants, giving rise
to consensus on a single, distributed, ledger.
Blockchain is the distributed ledger protocol invented by Nakamoto (2008)
when he created Bitcoin. The elegance and novelty of his solution relies in
particular on its endeavour to incorporate the incentives of the participants.4
This justifies our game theoretic approach that accounts for these incentives
to investigate the properties of this protocol.
7
to using computers and electricity to perform this task. The problem to
solve has nothing to do with the economic transactions included in a block.
Rather, it allows each participant to use computing power to perform inde-
pendent trials (similar to draws under replacement) until one finds a solution
to an arbitrary numerical problem (a hash value lower than a given thresh-
old.) The larger the computing power the larger the number of draws per
unit of time, the shorter the expected time it takes to find the solution.
A property of cryptographic problems is that the solution is hard to find,
but easy to verify. Hence, when they receive a block for validation, par-
ticipants easily check whether the sender actually found the solution. If
participants accept this block, they take it as the parent of the new block
they start mining. Thus, as written by Nakamoto (2008), participants
8
Miners: The nodes conducting the above mentioned tasks are called
“miners”, as they “mine” to solve proof-of-work problems and get rewarded
for this in units of the cryptocurrency whose ownership is recorded in the
blockchain. This includes the creation of new units of the cryptocurrency
allocated to the miner (12.5 BTC per block on Bitcoin in 2017, and 3 ETH
on Ethereum since Oct. 2017) plus transaction fees which the originators of
economic transactions can choose to offer for the validation of these trans-
actions. Bitcoin imposes a 100-block delay before rewards earned through
mining can be spent.
In practice, miners gather in large pools. Figure 3 presents the distri-
bution of computing power of the pools operating on Bitcoin in November
2017. The figure illustrates that 13 mining pools represented about 95 %
of the total hash capacity. Pools allow miners to mutualise block discovery
risk. They also coordinate individual mining strategies. For example, on
https://www.bitcoinmining.com/bitcoin-mining-pools/, one can read:
“If you participate in a Bitcoin mining pool then you will want
to ensure that they are engaging in behavior that is in agreement
with your philosophy towards Bitcoin. [...] Therefore, it is your
duty to make sure that any Bitcoin mining power you direct to a
mining pool does not attempt to enforce network consensus rules
you disagree with.”
2.2 Forks
Consensus on the decentralised ledger requires that there is only one chain of
blocks, observed by all and on which all agree. It is jeopardised if the chain
9
Figure 3:
Hashrate distribution of Bitcoin mining pools on November 15, 2017.
Source: blockchain.info. AntPool servers are located in China. The other three
main pools have servers in China, Japan and the US.
splits into a fork, with two competing branches, each with its own version of
the ledger. In the present subsection we review some reasons why forks can
happen in blockchains, and describe forks which actually occurred.
10
Chain Rule, hereafter LCR):
11
Unintended forks: An important chain split occurred on the Bitcoin
blockchain in March 2013, following what developers thought to be an innocu-
ous soft fork: On March 11, 2013, some miners upgraded to a new version
of the software, referred to as 0.8. There turned out to be a bug so that the
miners operating with the 0.7 version rejected as invalid one block solved by
the 0.8 miners and consequently the subsequent ones (Thus the 0.8 upgrade
turned out to be an unintended hard fork, which miners identified with a
delay). From that point on, the 0.8 miners worked on a chain stemming
from that block, while the 0.7 worked on a competing chain, stemming from
its parent. When they discovered the split, participants all wanted to revert
to a single chain, but they had to decide which branch to keep and which
to orphan. Achieving coordination turned out to be difficult, as illustrated
by the following discussion between Bitcoin software developers and miners
(reported by Narayanan (2015)):
“Gavin Andresen: the 0.8 fork is longer, yes? so majority
hashpower is 0.8 ... first rule of bitcoin: majority hashpower
wins
Luke Dashjr: if we go with 0.8 we are hard forking
BTC Guild: I can single handedly put 0.7 back to the majority
hashpower. I just need confirmation that that’s what should be
done.
Pieter Wuille: that is what should be done, but we should
have consensus first.”
Miners faced a dilemma. Should they follow the longest chain rule and
mine the 0.8 chain which had attracted the majority of the computing power?
Or should they revert to the 0.7 version? Miners wanted to abide to the
consensus, but they first needed to coordinate on what the consensus should
be.
Eventually, BTC Guild, which was one of the largest pools at the time,
chose to downgrade to the 0.7 version. This resulted in the 0.7 chain be-
coming the longest, and all miners coordinating back to it. It took 8 hours
before participants could solve the problem. Consequently more than 24
blocks, solved on the 0.8 chain, became orphaned, and their miners (in-
cluding BTC Guild) lost the corresponding rewards. Commenting on this
situation, Narayanan (2015) wrote:
“One way to look at this is that BTC Guild sacrificed rev-
enues for the good of the network. But these actions can also
12
be justified from a revenue-maximising perspective. If the BTC
Guild operator believed that the 0.7 branch would win anyway
(perhaps the developers would be able to convince another large
pool operator), then moving first is relatively best, since delaying
would only take BTC Guild further down the doomed branch.”
13
out a compromise solution (SegWit2x). Yet another way to increase through-
put, Bitcoin Cash, was eventually implemented, via a hard fork, on August
1st, 2017. Bitcoin then split in two branches, with two different cryptocur-
rencies, Bitcoin and Bitcoin Cash. On the former branch, following the New
York Agreement, a hark fork was planed for November 2017. There was
a lot of uncertainty, and discussion among miners, about who would adopt
SegWit2x, and whether there would be a new chain split. Many bloggers,
developers and mining pool operators announced that a chain split was very
likely. At odds with those forecasts, the SegWit2x hard fork was abandoned.
One could have thought this meant participants would coordinate on Bitcoin.
Quite to the contrary, a large fraction of miners reacted by shifting from Bit-
coin to Bitcoin Cash. While, early November, 12-hour average hashrates
were about 10 Exahashes (1018 hashes) per second on Bitcoin versus less
than 2 on Bitcoin Cash, on November 12, hashrates were similar on the two
branches. Again, this episode underscores that it is difficult for miners to
coordinate on a single chain, that chain splits are not uncommon, and that
the outcome is hard to predict, even for major participants.
In the next sections, we will show how these features of blockchain in the
real life also arise, in equilibrium, due to standard economic forces.
3 Model
In line with the above description of the blockchain technology, we consider
the following model.
14
As explained in Nakamoto (2008), the time it takes miner m to solve a
block problem is exponential with parameter θm . For a given computational
power, the greater the difficulty, the lower the intensity θm . A key property
of the exponential distribution is that it is memoryless: at each point in
time, the distribution of the waiting time until the miner finds a solution
is independent from how long the miner has been working on the problem.9
This waiting time is also independent of which block m is mining, and also
from the blocks the other miners are mining. We denote by Nm the Poisson
process jumping each time miner m solves a block. Thus, the number of
blocks solved by miner m between time 0 and time t, is
Z t
Nm (t) = dNm (s).
s=0
For simplicity we assume (in line with what happens in practice) that
miners do not update the set of transactions defining the block they mine
until they have solved the hash problem (transactions that flow in mean-
while are stored in a buffer.) Relaxing that assumption would not alter the
economic mechanism we analyse below.
We assume that at time zm , exponentially distributed, with parameter
λm , miner m is hit by a liquidity shock. At time zm the miner must leave
the game and sell the cryptocurrencies he earned previously to a new miner
who also inherits his beliefs and preferences.10 Thus, exits are compensated
by entries and the environment is stationary.
15
As the game unfolds, a tree of blocks develops. At each vertex Bk , the
tree includes a label, identifying the miner who solved the corresponding
block, m(Bk ). The indices of the blocks give the order in which they have
been solved. That is, if k < n, then block Bk was solved before block Bn .
Thus, at any time t, one can observe a tree of solved blocks C t = {B t , E t , I t },
where B t = (B0 , ...Bn ) is the set of all blocks that have been solved by time
t, E t = {(B0 , B1 ), ...(Bk , Bk0 ), ...}, with 0 ≤ k < k 0 ≤ n, is the set of edges
chaining these blocks, and I t = (m(B1 ), ...m(Bn )) is the set of identities
of miners who solved blocks. Within a tree, a chain is a sequence of con-
nected blocks in which each block is connected to at most one subsequent
block. Thus, each fork starts a new chain. More formally, we define a fork
as follows:
Definition 1 Fork: There is a fork at time t if and only if there exists
(Bi , Bk , Bk0 ) included in B t such that (Bi , Bk ) and (Bi , Bk0 ) belong to E t .
It is also useful to define the original chain for a given tree C t , as follows:
Definition 2 Original Chain: Suppose E t contains (Bi , Bk ) and (Bi , Bk0 ).
A chain that includes (Bi , Bk ) preexists a chain that includes (Bi , Bk0 ) if and
only if k < k 0 . We call the original chain the chain that preexists all other
chains in C t .
Note that the original chain is well defined since the “preexist” relation
provides a complete ranking of all chains (as all chains have at least one
common block, B0 ).
16
Action space: At any time τ ∈ T , miners observe the set B τ of all
the blocks that have been solved previously. A miner’s action is the choice
of which block in B τ to attach his current block to. All miners m ∈ M =
{1, ...M } face the same action space.
17
G(0) = G(1) = 0 since, when there is only one or no miner on a chain, the
associated cryptocurrency has no value. Finally, we assume that when sev-
eral chains compete, the total value of a unit of cryptocurrency that belongs
to the competing chains is weakly lower than if it belonged to a single chain
that was the consensus of all miners: G(M − K) + G(K) ≤ G(M ), ∀K.
Our assumption that the value of the virtual currency is reduced by forks
is illustrated by Figure 4, which plots the decline in bitcoin value during the
March 2013 fork. The first vertical line indicates the time (around 22:00) at
which miners started working on two different chains. Chats between miners
realising there was a fork, started around 23:30.15 At 1:30 am, a message
posted on Bitcointalk asked miners to stop mining one the two branches of
the chain (the 0.8 branch). The second vertical line (approximately at 6:20)
indicates the time at which the 0.7 branch caught up the 0.8 branch. By 7:30,
miners had stopped mining the 0.8 branch, which became orphaned, so that
the fork was no longer active. The figure illustrates that, when the market
realised that miners worked on different branches this triggered a 25% drop
in the value of the virtual currency (from around $48 at 1:00 am to around
$36 at 3:00).
18
Figure 4:
BTC/USD trade prices on Bitstamp exchange, around the March 2013 Bit-
coin fork.
The graph plots individual transaction prices obtained from a major bitcoin ex-
change platform, Bitstamp, during the March 11-12, 2013 fork. The first dotted
vertical line represents the time at which the fork started, and the second dotted
vertical line represents the time at which the original chain caught up the fork.
Data source: Kaiko
19
the world.
4 Equilibrium analysis
To analyse equilibrium strategies, it is useful to first note that an upper
bound on the lifetime payoff miner m can earn is
Z s=zm
max
Gm = dNm (s) G(M ),
s=0
minus the price he paid for the cryptocurrency if he was not there at time
0. This sunk cost does not affect his strategies and we neglect it hereafter.
max
Gm R zm bound because i) the total number of blocks solved by m
is an upper
before zm is s=zm − dNm (t), whatever his mining strategy, and ii) m cannot
earn more than G(M ) each time he solves a block. At time t, the expectation
17
Indeed, the timing of previous block resolutions, as well as previous mining choices,
are payoff irrelevant.
20
max
of Gm , conditional on zm ≥ t, is
Z t Z zm
Et dNm (s) + dNm (s)|zm ≥ t G(M )
s=0 s=t
Z zm
θm
= Nm (t) + E dNm (s)|zm ≥ t G(M ) = Nm (t) + G(M ).
s=t λm
Does there exist a natural strategy enabling miners to achieve this max-
max
imum expected payoff? The definition of Gm implies that, to obtain the
maximum expected payoff, all miners should be on the same chain, when any
of them is hit by the liquidity shock. This is the case if all miners stick to the
original chain at any time τ ∈ T . If they do so the longest chain rule (LCR)
trivially holds. Our first proposition states that there exists an equilibrium
in which miners follow this strategy.
21
Proposition 1 emphasises that attaching blocks to the original chain is a
simple way for miners to coordinate their actions, and results in a single chain
with no fork. There might, however, be other ways for miners to coordinate
in our stochastic game. In particular they could rely on the sunspot variable
rτ . We now exhibit an equilibrium in which conditioning actions on rτ leads
to equilibria with forks.
Intuitively, suppose miners follow the original chain until the realisation
of the sunspot variable is such that miners anticipate a fork. As shown below,
because of coordination effects, this anticipation is self fulfilling.
More precisely, let τ f be the first time at which the sunspot variable is
above 1 − ε (where ε can be arbitrarily small), and let n(τ ) denote the index
of the last block solved by time τ . We now state our next proposition:
22
Thus the forking equilibrium in Proposition 2 is Pareto dominated by the
single chain equilibrium in Proposition 1.
Observe that, like Proposition 1, Proposition 2 does not depend on the
number of miners M . Both propositions hinge on coordination effects, which
also arise in a competitive environment.
While in the previous proposition, in spite of forking, there was eventually
a single chain, we now show that forking can lead to the persistent coexistence
of different branches, as in the examples of the Ethereum 2016 and Bitcoin
2017 forks.
As in Proposition 2, we consider the possibility that, at any time τ f , the
realisation of the sunspot can suggest that some miners fork to a new chain.
This can, for instance, give rise to two coexisting chains at time τ > τ f , the
original chain, including the blocks linked by the sequence of edges
(B0 , B1 ), ...(Bn(τ f )−f , Bn(τ f )−f +1 ), ...
and a new chain, including the blocks linked by
(B0 , B1 ), ...(Bn(τ f )−f , Bk+1 ), ...
with k ≥ n(τ f ).
The number of blocks solved by m after Bn(τ f )−f on any of these two
chains defines the vested interest of m on that chain. We denote the vested
o
interests of miner m at time τ on the original and the new chain by vm (τ ) and
n
vm (τ ) respectively. For example, suppose miner m keeps mining the original
chain. The vested interest of that miner on the original chain at time τ is
o
equal to vm (τ ) = Nm (τ )−Nm (τ (Bn(τ f )−f )) (where τ (Bn(τ f )−f ) is the stopping
time at which Bn(τ f )−f is solved), while his vested interest on the new chain
n
is vm (τ ) = 0. Alternatively, consider miner m0 who mines the new chain from
time τ f on. The vested interest of that miner on the original chain at time
o f
τ is vm 0 (, τ ) = Nm0 (τ ) − Nm0 (τ (Bn(τ f )−f )), while his vested interest on the
n f
new chain is vm 0 (τ ) = Nm0 (τ ) − Nm0 (τ ). For miners switching between the
original chain and the new one, vested interests are a bit more intricate, but
follow the same logic.
In our model miners hold their rewards until zm . Our next result illus-
trates the consequences of these vested interests. To state that result, rank
the miners by their vested interest in the original chain at time τ f as follows
Pr(zm = τ 0 ) o f Pr(zm+1 = τ 0 )
v (τ ) ≤ v o (τ f ),
Pr(Nm (τ 0 ) − Nm (τ f ) = 1) m Pr(Nm+1 (τ 0 ) − Nm+1 (τ f ) = 1) m+1
23
where Pr(zm = τ 0 ) is the probability that at the next stopping time τ 0 , miner
m is hit by a liquidity shock, and Pr(Nm (τ 0 ) − Nm (τ f ) = 1) is the probability
that he solves his block at τ 0 .
Consider the following condition.
Condition 1 For any M and any K < M , G(K)+G(M −K) = G(M ), and
ωτ is such that there is a single chain and there exists K ∈ {Int( M2 )+2, ...M }
(where Int denotes the integer part) such that
G(M − K − 1) + G(M − K + 1)
G(M − K) ≤ (1)
2
and for m > K
Pr(Nm (τ 0 ) − Nm (τ ) = 1) o
(G(K)−G(M −K)) < vm (τ )(G(M −K)−G(M −K−1))
Pr(zm = τ 0 )
(2)
while for m ≤ K
Pr(Nm (τ 0 ) − Nm (τ ) = 1) o
(G(K)−G(M −K)) > vm (τ )(G(M −K+1)−G(M −K))
Pr(zm = τ 0 )
(3)
The assumption that for any M and any K < M , G(K) + G(M − K) =
G(M ), simplifies the presentation of Condition 1. However, Proposition 3
below also holds in the more general case where G(K)+G(M −K) ≤ G(M ).19
Consider an arbitrary integer f . Let τ f be the first time at which rτ >
1 − ε, f < n(τ ) and Condition 1 holds.
24
The intuition for this result is the following. First note that for some
miners to fork, we must have that the left-hand-side of (3) be non negative,
which implies that K ≥ M2 + 1. That is, in Proposition 3, persistent forks
can occur only if a majority of miners choose to fork and this is expected by
all.
Now, suppose all miners expect that a majority will fork and this will
result in two coexisting chains and consider the choice of miner m between
forking and remaining on the original chain. For m, the benefit from forking
is that the blocks he will mine on the new chain will be worth G(K), which is
larger than the value of blocks mined on the original chain, G(M − K). This
benefit is large if the probability that m solves a block in any given period,
Pr(Nm (τ 0 ) − Nm (τ ) = 1), is large relative to the probability that m leaves
the game because of a liquidity shock, Pr(zm = τ 0 ). Note that the ratio of
these probabilities increases with the ratio of the mining intensity θm to the
liquidity shock intensity, λm . This benefit is captured in the left-hand-side
of equations (2) and (3) in Condition 1.
On the other hand, the cost of mining the new chain is that it reduces
the value of the blocks already mined on the original chain. For instance,
if miner m > K deviates from the equilibrium strategy and mines the new
chain, he reduces the value of all the blocks he solved on the original chain
from G(M − K) to G(M − K − 1). This cost is large if m has large vested
o
interests in the original chain, that is, if vm (τ ) is large. This cost is captured
in the right-hand-side of equations (2) and (3) in Condition 1.
Overall, Proposition 3 shows that the endogenous sorting between miners
who prefer to stick to the original chain and those who fork is driven by two
forces: the number of blocks that a miner expects to solve in the future, λθm m
,
o
and his vested interest in the original chain, v (m, τ ). A miner is more likely
to fork when the former is higher, and the latter is lower.
Last, inequality (1) ensures that the set of miners who choose to stick to
the original chain has no intersection with the set of miners who prefer to
fork. Figure 5 represents the competing chains sustained at the equilibrium
of Proposition 3.
Unlike Proposition 1 and Proposition 2, the conditions in Proposition
3 depend on the number of miners. More precisely, the tradeoffs faced by
the miners involve the effect of their mining strategy on the value of their
rewards. If miners were competitive and their choice had no impact on the
value of their rewards, this strategic effect would not arise.
Finally note that the equilibrium outcome in Proposition 3 is Pareto
25
Original chain with M − K miners
t
τf
5 Frictions
So far we have considered the frictionless case, in which, relying on abstract
sunspots, we have shown that coordination effects can lead to forks and mul-
tiplicity of equilibria. We now introduce frictions by allowing for information
delays, double spending attempts, and hard fork upgrades, and show that
they can play a similar role as sunspots in triggering forks. This underlines
that the fundamental problem is not the frictions per se, but the coordina-
tion effects that necessarily arise when seeking consensus in a decentralised
protocol.
26
To model information transmission, we introduce the following modifica-
tion of our framework: To keep things as simple as possible, we assume that
a delay in information transmission can happen only once. Thus, as long as
all miners have observed when all previous blocks were solved, each time a
new block Bn is solved there is a probability η that one (and only one) of the
miners does not observe that event. In that case each of the M − 1 miners
has an equal chance of not observing the block solved by the other miner.
(when this happens all miners don’t have the same stopping times.) As soon
as the next block (Bn+1 ) is solved, the miner who did not observe that Bn
was solved learns that information.
Proposition 4 When miners can observe solved blocks with a delay, there
exists a Markov Perfect Equilibrium such that on the equilibrium path miners
always mine the chain which they perceive to be the longest. If there are two
chains of the same length, each miner keeps mining the chain he was mining
just before.
27
can trigger a fork. In the proposition, the fork is only one-block-long because
the delay can only affect the observation of one block. By extension, longer
forks could be sustained if delays affected more blocks. Note that delays are
not necessarily due to network latency. In the case of the Bitcoin March
2013 Fork, a delay in the observation of several blocks occurred, because one
block was mistakenly rejected by computers using one version of the mining
software.
There exists a Markov Perfect Equilibrium such that on the equilibrium path
miners always mine the longest chain, except the miner who has the opportu-
nity to double spend. The latter tries to create a fork longer than the original
chain. If he succeeds, all miners chain to his fork and the original chain is
orphaned.
28
do the same. This in turn can induce a miner to create a fork that will be
followed by all miners if it becomes the longest. But in contrast with the case
of delays, the fork does not start accidentally, it is intentionally triggered by
the miner who tries to double spend. This miner finds it profitable to do so if
(4) holds. Condition (4) is explained as follows. When trying to create a fork
after spotting S, a miner has a high probability that his fork does not become
the longest chain. Hence, he bears the risk of mining blocks on the fork in
vain, and obtaining no reward. The higher the double spending S, the more
it compensates for these losses. Similarly, the higher Pr(m = m(B)), the
higher the probability that the fork succeeds. In Proposition 6, (4) holds for
all miners, so that all miners can start a fork. Alternatively, one can construct
an equilibrium such that only the miners with the largest computing power
can double spend. The condition under which double spending can occur
would then be less demanding than (4).
The theoretical possibility of double spending is only relevant in practice if
condition (4) is likely to hold. A back-of-the-enveloppe computation suggests
that if λ is small and there are 15 identical miners, (4) can be approximated
as S > 30G(M ). For Bitcoin, G(M ) = 12.5 bitcoins in 2017, hence for (4)
to hold, S must be larger than 375 bitcoins, which is a sizeable amount.
5.3 Upgrades
Blockchain participants may want to change the rules governing their mining
process by introducing upgraded versions of the mining software. To study
the impact of these upgrades, we assume it is common knowledge that just
after the nth block on the original chain has been solved, a new technology
is introduced. Then, miners must choose between staying with the existing
technology, C = 0, or adopting the new technology C = 1. From this point
on, miners choose between C = 0 and C = 1 for each block they mine.
To capture the notion of hard fork, we assume that miners can only chain
their block to a block solved with the same technology. We also assume that
each miner m derives a private benefit from using technology C. Private
benefits can reflect a cost advantage of using one technology over another.
For instance, it is argued that the mining pools controlled by Bitmain, an
ASIC manufacturer, favoured the Bitcoin Cash solution because they have
29
access to a patented mining-enhancing device20 that cannot be used with the
SegWit solution adopted on Bitcoin in august 2017. Alternatively, private
benefits can reflect ideological preferences: the attempt at increasing the size
of blocks on Bitcoin with the SegWit2X hard fork was supported by a group
of large mining pools. It was eventually defeated in november 2017 by the
Bitcoin core developers who opposed the principle of a hard fork (and the
idea of letting the SegWit2X proponents impose their solution).
To model private benefits, we assume that when solving a block with
technology C, miner m obtains a reward (1 + bm (C))G(K) where K is the
number of miners active on the chain containing this block and bm (C) > −1
for all m. Without loss of generality, we normalise bm (1) to 0.
If miners anticipate that all other miners will choose one technology, say,
C = 0, then it is a best response to choose C = 0 as well, whatever the level
of private benefit associated with each technology. This is because each miner
anticipates that the others will follow the longest chain rule with the same
equilibrium technology, so there is no gain in mining a block with a different
technology. The equilibria described in Proposition 7 therefore hinge on the
same coordination effects as in Propositions 1 and 2.
When miners coordinate on the same technology and on following the
LCR, the level and distribution of private benefits does not affect which
equilibrium will prevail. In particular, it can be that C = 1 is chosen at
equilibrium even if all miners have a preference for C = 0 (i.e., even if
bm (0) > 0 ∀m). We explore below how a persistent fork can also be sustained
at equilibrium in the presence of private benefits. To do so, assume miners
m ∈ {1, 2, ...K} have bm (0) = 0, and miners m ∈ {K + 1, ...M } have bm (0) =
b > 0. Denote τ f the time at which the new technology is introduced.
G(K)
Proposition 8 If b ≥ G(M −K)
−1 and K ≥ M2 , there exists a Markov Perfect
Equilibrium in which, on the equilibrium path, for τ < τ f all miners follow
the LCR and for τ ≥ τ f , miners m ≤ K choose C = 1 and follow the LCR
20
This is the ASICBOOST technology that can increase the efficiency of the SHA-256
hash function.
30
on the chain of blocks mined with C = 1, and miners m > K choose C = 0
and follow the LCR on the chain of blocks mined with C = 0.
When some miners have sufficiently large private benefits, the introduc-
tion of a new technology can give rise to a disagreement on the technology
choice, which triggers a persistent fork on the blockchain. For a fork to
happen, it must be that a majority of miners have no private benefit (i.e.,
K ≥ M2 ): indeed, if a miner has no private benefit attached to a technology,
he chooses to mine blocks on the branch that yields the highest reward per
block solved, that is, the branch with the majority of miners. If K ≥ M2 ,
a majority of miners have no private benefit associated to C = 0, and can
coordinate on choosing C = 1 (even though they do not have any private
benefit associated to C = 1 either). When K miners choose C = 1, it is
costly for other miners not to adopt the same technology. They are never-
theless willing to stick to C = 0 if their level of private benefit b is sufficiently
large to compensate the loss in reward when mining blocks on a chain with
only M − K ≤ K active miners.
This result is reminiscent of the persistent fork equilibrium described in
Proposition 3 in which a minority of miners agree to split from the majority
because they have vested interests attached to one branch. One difference
with Proposition 3 is that here private benefits are exogenous, while vested
interests arose endogenously from the distribution of past solved blocks. An-
other difference is that here the fork can happen with probability one, simply
because some miners have different interests.
The introduction of upgrades in the blockchain bears similarities with
patterns observed in open source programs, in which coordination effects
and conflicting interests can lead to the splintering of programs into several
variants (see Lerner and Tirole (2002)).
6 Computing capacity
We now endogenise computing power in the network to investigate the re-
lation between equilibrium hash capacity and the socially optimal one. The
determination of equilibrium capacity is similar to that in Dimitri (2017).
Our contribution relative to Dimitri (2017) is to identify an externality in
the computing power acquisition game, which drives a wedge between equi-
librium and social optimality.
31
For each miner m, the instantaneous probability of solving a block, θm ,
is determined by his individual computing power, or hash power, and by the
difficulty of the mining task set by the network protocol, D:21
hm
θm = . (5)
D
The difficulty is set so that the expected time between two blocks is equal
to a constant, X (on Bitcoin X = 10 minutes), that is
1
X=P . (6)
i∈M θi
Therefore
1 h
θm = P m . (9)
X i∈M hi
We now analyse the individually optimal choice of hm by miner m. To
make this choice the miner needs to anticipate how his computing power
will affect his continuation game payoff. To do so, the miner needs to form
a conjecture on the equilibrium that will prevail in the mining game. For
simplicity, we assume that all miners rationally anticipate that the single
chain equilibrium described in Proposition 1 will prevail.
The program of miner m is
θm cm (hm )
max G(M ) − ,
hm λm λm
21
Indeed, when miners try to solve the hash problem, at each trial they have a probability
1
D to solve the problem. The hash power hm is the number of trials per unit of time.
32
where cm (hm ) is the cost of using hm per unit of time and therefore can be
thought of as the rental cost of the equipment plus the cost of electricity.
Miner m bears this cost until he is hit by a liquidity shock.22
Substituting (9) this is
P hm
i∈M hi cm (hm )
max G(M ) − .
hm λm X λm
It is reasonable to assume that the cost function is linear, that is cm (hm ) =
cm hm , which yields the following first order condition:
P
i∈M hi − hm G(M )
2 = cm . (10)
X
P
hi i∈M
P
i∈M ci
Condition
P
cm ≤ ensures that the solution to (11) is positive for all
M −1
i∈M ci
≤ G(M ) ensures that i∈M h∗i ≥ X1 as requested by (8).
P
miners and M −1
Equilibrium individual computing power is increasing in the mining reward
(G(M )), decreasing in the average duration between blocks (X) and P in the
unit cost cm . Consequently, total network capacity decreases with i∈M ci .
22
For simplicity, when miner m is hit by a shock, his successor inherits the computing
capacity hm .
33
We now compare the equilibrium network capacity to what miners would
choose if they could coordinate their choice and maximise their joint profit.
To do so in the simplest way, we consider the special case in which all miners
have the same cost c and the same λ.
The corresponding maximisation problem is
1 h c
max M ( P G(M ) − h).
h λX m h λ
This is decreasing in h. So miners coordinate on P the smallest possible value
of h, corresponding to D = 1. PWe then have i∈M hi = X1 . Comparing
i∈M ci
this to (12), and recalling that M −1
≤ G(M ), there is overinvestment in
computing power: if miners could cooperatively decide on their individual
computing capacity, each would invest M1X . But if all miners invest M1X ,
then any miner m has an incentive to increase his own h in order to increase
his probability to solve blocks, leading to an arms race in computing capac-
ity. This uncovers an additional cost of decentralised ledgers compared to
centralised ones.
7 Conclusion
Our analysis suggests that miners’ incentives are key to the production of
a robust consensus in a blockchain. While miners benefit from coordinating
on a single chain, thereby maintaining consensus, coordination motives may
also lead them to abandon portions of the blockchain. This jeopardises the
blockchain’s key function, i.e., producing a stable and immutable history of
transactions. In addition, vested interests, by counteracting coordination
motives, may lead to the persistence of multiple active chains.
Our approach could be taken in different directions going forward. First,
the current design could be enriched by providing miners with additional
tools to avoid coordination failures. In particular, communication among
miners could play a role in this context, and provide a rationale for informa-
tion channels such as IRC networks and forums, or flags attached to blocks
to signify support for an upgrade. Second, one could study how modifying
the current design would affect stability. A natural candidate is miners’ pay-
ment scheme which could, for instance, reward some orphaned blocks, as is
already the case on Ethereum. Another component of miners’ profits are the
rewards attached to transactions to provide incentives for faster validation.
34
On Bitcoin, these payments are bound to become more significant relative
to rewards for solving blocks and could affect the nature of the interaction
between miners. Finally, alternative protocols, such as proof-of-stake, have
been put forward, if not fully implemented, and their properties could be
compared to the design we study here. Overall, we hope that the current
model can be a first step towards a better understanding of decentralised
transaction systems.
35
Appendix
Notation
We summarize below notation we use throughout the proofs:
∗
The following Lemma implies that a candidate strategy profile {σm }m∈M
forms a Markov Perfect Equilibrium (MPE) if and only if no miner has a
profitable one-shot deviation after any possible history of the game ωτ .
Proof of Lemma 10
Denote by J(σm ) the expected payoff of miner m if he follows strategy σm .
0
Consider an alternative strategy, σm , that prescribes the same actions as σm
until time T and differs afterwards. The difference between the two expected
payoffs can be written as
0 0
J(σm ) − J(σm ) = Pr(zm ≤ T )E[J(σm ) − J(σm )|zm ≤ T ]
0
+ Pr(zm > T )E[J(σm ) − J(σm )|zm > T ].
Now, by definition,
0
E[J(σm ) − J(σm )|zm ≤ T ] = 0.
Moreover
lim Pr(zm > T ) = 0,
T →∞
36
0 max
and J(σm ) − J(σm ) is bounded, since Gm is finite. Hence,
0
lim J(σm ) − J(σm ) = 0,
T →∞
Proof of Proposition 1
The candidate equilibrium strategy specifies that miners always chain their
block to the last block on the original chain. We let Bn denote that block,
and check that no miner has a profitable one-shot deviation.
Consider the strategy of miner m at time τ after history ωτ . We break
the analysis into three cases, the probabilities of which are independent of
the miners’ actions (they reflect the distributions of independent Poisson
processes with exogenous intensities).
ii) Suppose the next event is that a block is solved by another miner than m
at time τ 0 .23 Then the state of the blockchain at τ 0 , ωτ 0 , does not depend
on m’s action at τ . By definition, ωτ 0 captures all the payoff-relevant
information, hence m’s action at τ does not affect his payoff.
iii) Suppose the next event is that m solves block Bn(τ )+1 at time τ 0 . Since all
other miners play the equilibrium strategy going forward and m himself
23
The next event can also be that nothing happens, or that another miner is hit by a
liquidity shock. Which block m chose as a parent block is also irrelevant in those cases.
For brevity, we ignore these cases in the remainder of the proofs.
37
reverts to mining the original chain after τ 0 (one-shot deviation), which
block m chose as a parent block at τ does not affect the payoff m expects
from previously mined blocks or from future blocks. Consequently, m’s
payoff in any one shot deviation differs from his equilibrium payoff only
in the reward he obtains for Bn . This reward is G(M ) if m played the
equilibrium strategy and chained Bn(τ )+1 to Bn , and G(0) if he chained
Bn(τ )+1 to any other block as in that case, no miner will ever chain a
block to Bn(τ )+1 . Hence deviating is strictly dominated in this case.
Proof of Proposition 2
Let τ f be the first time the sunspot variable is above 1 − ε and f is strictly
lower than the number of blocks n(τ ). We call “new chain” the chain created
by the fork. Formally, for every τ > τ f , the new chain, if it exists, is
the chain containing (Bn(τ )−f , Bk ) that preexists all other chains containing
(Bn(τ )−f , Bk ), where k ≡ min{k̂ > n(τ f ), (Bn(τ )−f , Bk̂ ) ∈ ωτ }.
Our candidate equilibrium strategy specifies the following:
a) Before the fork: If τ < τ f , miners chain their block to the last block on
the original chain.
b) At the fork inception and after the fork: If τ ≥ τ f , miners chain their
block to the last block on the new chain, or to Bn(τ )−f if the new chain
does not exists.
We now show that miner m does not have a profitable one-shot deviation
from this strategy at time τ .
a) Before the fork. Since m’s actions do not affect the occurrence of the
sunspot, for τ < τ f the proof operates along the same lines as the proof
of Proposition 1.
38
b) At the fork inception and after the fork. Suppose τ ≥ τ f . As in the proof
of Proposition 1, we can restrict attention to the case where m solves
the next block, Bn(τ )+1 , at time τ 0 . In that case, m0 s equilibrium payoff
differs from his payoff in a one-shot deviation only in the reward for block
Bn(τ )+1 . Since m expects all miners, including himself, to attach their
block to the last block on the new chain after τ 0 , m’s reward for block
Bn(τ )+1 is G(M ) if he played the equilibrium strategy and chained his
block to the last block on the new chain (or to Bn(τ )−f ), and G(0) = 0 if
he chained Bn(τ )+1 to any other block.
QED
Proof of Proposition 3
Preliminary steps
n
We define the new chain as in the proof for Proposition 2, and let vm (τ ) =
n n f
Nm (τ ) − Nm (τ ) be miner m’s vested interests on that chain, that is, the
number of blocks he solved on the new chain after τ f .
To define our equilibrium strategies, we use the following condition, which
we will derive explicitly in the proof:
while for m ≤ K
o n
vm (τ )(G(M − K + 1) − G(M − K)) − vm (τ )(G(K) − G(K − 1)) ≤
0
Pr(Nm (τ ) − Nm (τ ) = 1)
(G(K) − G(M − K)). (14)
Pr(zm = τ 0 )
a) Before the fork: If τ < τ f , miners chain their block to the last block
on the original chain.
39
b) At the fork inception and after the fork: If τ ≥ τ f and Condition 2
holds, miners m ≤ K chain their block to Bn(τ f )−f if the new chain
does not exist, and to the last block on the new chain otherwise, while
miners m > K chain their block to the last block on the original chain.
c) After the fork off-path: Suppose τ > τ f and Condition 2 does not hold.
f
Let ∆ω ≡ ω τ \ω τ (i.e., ∆ω contains the history of the game between τ f
and τ ). Then for every τ 0 ≥ τ , all miners play the strategy prescribed
0
after history ω τ \∆ω that is defined in b). In playing strategies defined
in b), miners consider that the original and the new chain are defined
0
with respect to history ω τ \ ∆ω. 24
40
Now,
Z ∞
f
Pr(τ < zm |ωτ ) = Pr(τ f < zm |ωτ , zm )λm e−λm zm dzm .
zm =τ
Observe that
Pr(τ f < zm |ωτ , zm ) < Pr(∃τ < zm , rτ > 1−ε|ωτ , zm ) = 1−Pr(∀τ < zm , rτ ≤ 1−ε|ωτ , zm ).
Moreover,
where ν(τ, zm ) is the number of stopping times between τ and zm . Now, for
small ε, a Taylor expansion yields
Hence, if ε is close enough to 0, Pr(τ f < zm |ωτ , zm ), and therefore the gain
from reducing the likelihood of a fork via a deviation, can be arbitrarily
small.
Next consider the second effect. If miner m solves Bn(τ )+1 but this block
is not on the original chain, no further block will be chained to it, since
all miners henceforth play the equilibrium strategy. Hence the expected
payoff for this block is G(0) = 0. If instead m was following the equilibrium
strategy when he solved Bn(τ )+1 , the expected payoff from this block is strictly
positive.
Overall, the first effect, which reflects the maximum gain from a one-shot
deviation can be set arbitrarily close to 0, while the second effect, which
reflects the cost of a one shot deviation, is bounded away from 0. Hence,
there is no profitable one-shot deviation.
41
check that m prefers to chain his block to the last block on the original
chain, rather than to the last block on the new chain. As in the proof
of Proposition 1, a one-shot deviation affects m’s payoff only if the next
stopping time τ 0 corresponds to two possible events: either m is hit by
a liquidity shock or m solves a block.
42
Next, see that at τ = τ f , vm
n
(τ f ) = 0 for all miners. Inequality (13) is
then written:
Pr(Nm (τ 0 ) − Nm (τ f ) = 1) o
[G(K)−G(M −K)] < vm (τ f )[G(M −K)−G(M −K−1)],
Pr(zm = τ 0 )
which is exactly inequality (2) in Condition 1. Similarly, inequality (14) is
then written:
Pr(Nm (τ 0 ) − Nm (τ ) = 1) o
[G(K)−G(M −K)] > vm (τ )[G(M −K+1)−G(M −K)]
Pr(zm = τ 0 )
which is exactly inequality (3) in Condition 1.
Furthermore, if miners adhere to the equilibrium strategy, then miners
m ≤ K always mine the new chain so that inequality (3) in Condition 1
implies that inequality (14) in Condition 2 is true at any τ ≥ τ f . Symmet-
rically, given that miners m > K stick to the original chain, Condition 2 is
always verified after τ f . Hence, given that Condition 1 holds at τ f , then for
τ > τ f , Condition 2 holds on the equilibrium path.
Last, see that inequality (1) in Condition 1 guarantees that (2) and (3)
cannot be satisfied jointly for the same miner m.
Proof of Proposition 4
Our candidate equilibrium strategy specifies the following:
a) If a miner solved a block outside the original chain thereby creating a
one-block-long fork as long as the original chain, that miner chains his
next block to the block he just solved.
b) Otherwise, each miner chains his current block to the last block solved
on the original chain, except if there is a fork starting with two blocks
consecutively solved by the same miner, longer than the original chain. In
43
that case, each miner chains his block to the longest chain, which miners
consider to be the original chain from that point on.26
We further assume that G(M − 1) + G(1) = G(M ). Indeed, there can
be a transient fork created by one miner who did not observe in time the
actual state of the original chain. If another miner is hit by a liquidity shock
precisely when the fork is being formed, the blocks previously solved by that
other miner, which with certainty will not become orphaned, are worth at
the time of the fork G(M − 1) + G(1). Given equilibrium strategies, the same
blocks will be worth G(M ) just after the fork is resolved. Our assumption
means that these blocks have the same value at and after the fork. This
assumption also mirrors the assumption that G(1) = G(0): if only one miner
is not on the same chain as the others, the reward for solving blocks is not
affected. We specify below when this assumption is used.27
Proof of part a)
Let Bn be the last block solved on the original chain. Suppose that at
time τ , miner m has just created a one-block-long fork as long as the original
chain by solving Bn(τ ) that is chained to Bn ’s parent, p(Bn ).28
As earlier, the relevant choice for m is between chaining his next block
to Bn(τ ) (the equilibrium strategy) and chaining it to Bn (the only relevant
deviation). As in the proof of Proposition 1, a one-shot deviation affects
m’s payoff only if the next stopping time corresponds to two possible events:
either m is hit by a liquidity shock or m solves a block.
44
If, instead, m followed the equilibrium strategy and chained his block to
Bn(τ ) his payoff is
o
G(1) + Nm (τp(Bn ) )[G(M − 1) + G(1)] + 1{m=m(Bn )} G(M − 1).
Since m is the only miner chaining to Bn(τ ) , he earns G(1) for block
Bn(τ ) . In addition, m earns G(M − 1) + G(1) for each block he solved on
the original chain up to p(Bn ), reflecting the occurence of a fork where
m chains to Bn(τ ) and the M − 1 other miners chain to Bn . Finally, m
earns G(M − 1) for Bn if he solved it.
Since by assumption G(M − 1) + G(1) = G(M ) and G(1) = 0, the
deviation is not strictly profitable in that case
ii) Suppose the next event is that m solves block Bn(τ )+1 .
29
As before, if zm occurs when a fork starts, these previously solved blocks are worth
G(M − 1) + G(1) which is equal to G(M ) by assumption in that case.
45
where the second term capture rewards for Bn(τ ) and Bn(τ )+1 .
Proof of part b)
As earlier, Bn is the last block solved on the original chain.
1) Suppose that at time τ , there is no fork of two consecutive blocks solved
by the same miner and longer than the original chain.
For any miner m (who has not started a fork), the two relevant choices
are to follow the equilibrium strategy and chain his block to Bn , or to create
a fork by chaining his block to p(Bn ) and try solving two blocks in a row
(other deviations are ruled out by the same reasoning as in Proposition 1).
As in the proof of Proposition 1, a one-shot deviation affects m’s payoff
only if the next stopping time corresponds to two possible events: either m
is hit by a liquidity shock or m solves a block. If the next event is zm , m’s
o o
payoff is Nm (zm )G(M ) (if there is no fork), or Nm (zm )(G(M − 1) + G(1)) =
o
Nm (zm )G(M ) (if a fork was started by another miner) whether he follows
the equilibrium strategy or deviates. If the next event is that m solves
block Bn(τ )+1 , there are two possible continuations: Either another miner
does not observe that m solved Bn(τ )+1 or all miners observe that m solved
Bn(τ )+1 . The probabilities of these two events are independent of m’s action,
we consider them in turn.
i) If all miners observe that m solved Bn(τ )+1 , m’s expected gain if he
followed the equilibrium strategy and chained Bn(τ )+1 to Bn is
Z zm
o
(Nm (τBn ) + 1)G(M ) + E[ dNm (t)G(M )dt|zm ≥ τ (Bn(τ )+1 )]
τ (Bn(τ )+1 )
The first term is the reward for blocks solved up to τ (Bn ) plus the reward
for mining Bn(τ )+1 when the latter remains on the original chain. The
conditional expectation is m’s expected reward for solving blocks after
τ (Bn(τ )+1 ). The last term, L(τ (Bn(τ )+1 )) is the expected loss due to one
of m’s blocks solved after τ (Bn(τ )+1 ) becoming orphaned.
46
m’s expected gain if he deviated and chained Bn(τ )+1 to p(Bn ) is30
ii) If one miner (m0 ) did not observe that m solved Bn(τ )+1 , m’s expected
gain if he followed the equilibrium strategy is
[Nmo
(τ (Bn )) + 1 − Pr(m0 = m(Bn(τ )+2 ) = m(Bn(τ )+3 ))]G(M )
Z zm
+ E[ dNm (t)G(M )dt|zm ≥ τ (Bn(τ )+1 )].
τ (Bn(τ )+1 )
The first term is m’s expected reward for solving blocks up to Bn(τ )+1 ,
reflecting the risk that Bn(τ )+1 become orphaned if m0 solves Bn(τ )+2 and
Bn(τ )+3 . The second term is m’s continuation payoff, reflecting that m
will be mining on the single active chain (be it the original one or a fork
that becomes the consensus).
30
Clearly, this is the only relevant deviation since m cannot obtain more if he chained
Bn(τ )+1 to Bn(τ ) if Bn(τ ) started a fork: Bn(τ )+1 will never be on the active chain given
the equilibrium strategies, even if m solves Bn(τ )+2 . A fortiori, m cannot obtain more if
he decides to chain Bn(τ )+1 to any block Bi with i < n(τ ) outside the original chain.
31
A fork can happen if one miner does not observe Bn(τ )+1 , but even in that case,
Bn(τ ) , as well as all previously solved blocks, will be on the active chain and yield G(M )
or G(M + 1) + G(1) = G(M ) depending on when zm occurs.
47
If m deviated by chaining Bn(τ )+1 to p(Bn ),32 to earn his reward on
Bn(τ )+1 , m needs to solve Bn(τ )+2 so his expected gain is
As above
o
Nm o
(τ (Bn )) ≥ Nm (τ (p(Bn ))) + 1{m=m(Bn )} Pr(Bn = p(Bn(τ )+2 )).
That is
This completes the first part of the proof of the optimality of the strategy
stated in b).
48
Proof of Proposition 5
Our candidate equilibrium strategy specifies the following:
a) If a miner solved a block outside the original chain thereby creating a
one-block-long fork as long as the original chain, all miners chain their
next block to the fork, which miners consider to be the original chain from
that point on.
b) Otherwise, each miner chains his current block to the last block solved on
the original chain.
Proof of part a)
Let Bn be the last block solved on the original chain, suppose Bk+1 , with
k ≥ n, is chained to p(Bn ). As above, the relevant choice for m at time
τ is between chaining his next block to Bk+1 (the equilibrium strategy) and
chaining it to Bn (the only relevant deviation). As in the proof of Proposition
1, a one-shot deviation affects m’s payoff only if the next stopping time
corresponds to two possible events: either m is hit by a liquidity shock or m
solves a block.
i) Supppose the next event is zm . If m deviated and chained his block to
Bn his payoff is
1{m=m(Bk+1 )} G(M − 1) + 1{m=m(Bn )} G(1) + Nmo (τ (p(Bn )))G(M ),
where G(M − 1) is his reward if he solved block Bk+1 , and G(1) his
reward if he solved Bn . If, instead, m followed the equilibrium strategy
and chained his block to Bk+1 his payoff is
1{m=m(Bk+1 )} G(M ) + 1{m=m(Bn )} G(0) + Nmo (τ (p(Bn )))G(M ).
Since by assumption G(M − 1) ≤ G(M ) and G(1) = G(0), the deviation
is not strictly profitable.
ii) Suppose the next event is that m solves block Bn(τ )+1 .
If m chained his block to Bn , Bn(τ )+1 becomes orphaned since all miners,
including m mine the fork after τ (Bn(τ )+1 ). m’s expected gain is
o
Nm (τ (p(Bn )))G(M ) + 1{m=m(Bk+1 )} G(M ) + 1{m=m(Bn )} G(0) + G(0)
Z zm
+ E[ dNm (t)G(M )dt|zm ≥ τ (Bn(τ )+1 )] − L(τ (Bn(τ )+1 )),
τ (Bn(τ )+1 )
49
since blocks Bn and Bn(τ )+1 are orphaned and earn G(0). As before,
L(τ (Bn(τ )+1 )) is the expected loss due to one of the blocks solved by m
after τ (Bn(τ )+1 ) becoming orphaned.
If instead m had chained his block to Bk+1 , m’s expected gain is
o
Nm (τ (p(Bn )))G(M ) + 1{m=m(Bk+1 )} G(M ) + 1{m=m(Bn )} G(0) + G(M )
Z zm
+ E[ dNm (t)G(M )dt|zm ≥ τ (Bn(τ )+1 )] − L(τ (Bn(τ )+1 )),
τ (Bn(τ )+1 )
Indeed, all miners chain their future blocks to the chain that contains Bn(τ )+1 ,
therefore m earns G(M ) for Bn(τ )+1 . If m played the equilibrium strategy
and chained Bn(τ )+1 to Bn , he obtains the same payoff, since he earns G(M )
for Bn(τ )+1 as well. Therefore there is no profitable deviation.
QED
Proof of Proposition 6
Our candidate equilibrium strategy specifies the following
50
b) If a miner solves a block that creates a one-block-long fork as long as
the original chain, that miner chains his next block to the block he just
solved, except if he spots an opportunity to double-spend, in which case
he plays according to a).
c) Otherwise, each miner chains his current block to the last block solved
on the original chain, except if there is a fork starting with two blocks
consecutively solved by the same miner, longer than the original chain. In
that case, each miner chains his block to the longest chain, which miners
consider to be the original chain from that point on.
The general structure of the proof is similar to that of Proposition 4. As in
this previous proof, we assume that G(M −1)+G(1) = G(M ) to simplify the
exposition. We also clarify that the miner who earns the reward S is the one
who completes a double-spending fork before being hit by his liquidity shock
zm . In particular, a miner who initiates a double-spending fork but is hit by
a liquidity shock before the fork is resolved does not earn S. By contrast,
a miner who successfully completes a double-spending fork initiated by the
miner he replaced does earn S.
Proof of part a)
Let Bn be the last block solved on the original chain. Consider the strat-
egy of miner m who spots the opportunity to double spend at time τ .
Following the same reasoning as above, the relevant choice for m is be-
tween chaining his next block to p(Bn ) (the equilibrium strategy), chaining it
to Bn , or chaining it to Bn(τ ) if Bn(τ ) is chained to p(Bn ) and m = m(Bn(τ ) ).
(This can happen off path if m started a fork from p(Bn ) and spots the
double-spending opportunity right after. By assumption, S can only be
earned if m creates a new fork from p(Bn ).) As in the proof for Proposi-
tion 1, we can restrict attention to the cases where the next event is that m
either is hit by a liquidity shock, or solves a block.
Suppose first that the next event is zm . If m deviated and chained his
o
block to Bn his payoff is Nm (τBn )G(M ). If, instead, m followed the equilib-
rium strategy and chained his block to p(Bn ) his payoff is
o
Nm (τ (p(Bn )))[G(M − 1) + G(1)] + 1{m=m(Bn )} G(M − 1).
51
p(Bn ), plus G(1) for solving Bn(τ ) .33 Since by assumption G(M −1)+G(1) =
G(M ) and G(1) = 0, the deviations are not strictly profitable.
Alternatively, suppose next event is that m solves Bn(τ )+1 .
To analyse this case, we condition m’s payoffs on the event that m =
m(Bn(τ )+2 ), that is m solves Bn(τ )+2 before being hit by a liquidity shock.
This event’s probability is independent from m’s strategy, and if m follows
the equilibrium strategy, then m earns S if and only if this event is true.
m earns G(M ) for all the blocks solved on the original chain up to τ (Bn ).
m earns G(M ) for solving Bn(τ )+1 and Bn(τ )+2 which belong to the orig-
inal chain, and for all the future blocks solved after τ (Bn(τ )+2 ), since m
knows that no other double spending opportunity will be spotted.
If m = m(Bn(τ ) ) and Bn(τ ) is chained to p(Bn ), if m deviated and chained
Bn(τ )+1 to Bn(τ ) , his payoff is
Z zm
o
Nm (τp(Bn ) )G(M )+3G(M )+E[ dNm (t)G(M )dt|zm ≥ τ (Bn(τ )+2 )].
τ (Bn(τ )+2 )
m’s fork has succeeded and he earns G(M ) on all blocks solved up to
p(Bn ) on the original chain, plus on Bn(τ ) , Bn(τ )+1 and Bn(τ )+2 .
If m played the equilibrium strategy and chained Bn(τ )+1 to p(Bn ), his
payoff is
Z zm
o
Nm (τp(Bn ) )G(M )+2G(M )+E[ dNm (t)G(M )dt|zm ≥ τ (Bn(τ )+2 )]+S.
τ (Bn(τ )+2 )
m earns G(M ) for all the blocks he solved before the fork (up to p(Bn )),
G(M ) for Bn(τ )+1 and for Bn(τ )+2 , and for all the future blocks solved
after τBn(τ )+2 , since on the equilibrium path all miners mine on the chain
including Bn(τ )+2 . In addition, m earns S from double-spending.
33
In that case a fork has started so the reward for solving Bn is G(M − 1) which is lower
than G(M ). This makes the deviation even less profitable.
52
Hence, the net benefit of following the equilibrium strategy rather than
deviating is S − max{1{m=m(Bn )} ; 1{[m=m(Bn(τ ) )] T[p(Bn(τ ) )=p(Bn )]} }G(M ).
ii) Suppose that either zm occurs before τ (Bn(τ )+2 ) or zm occurs after τ (Bn(τ )+2 )
but m does not solve Bn(τ )+2 . To write m’s payoff, we will distinguish
the two events when needed.
If m deviated and chained Bn(τ +1) to Bn , his payoff is
o
Nm (τ (Bn ))G(M ) + G(M )
Z zm
+ Pr(zm > τ (Bn(τ )+2 ))E[ dNm (t)G(M )dt|zm > τ (Bn(τ )+2 )].
τBn(τ )+2
(15)
m earns G(M ) for all the blocks solved up to τ (Bn ), for Bn(τ )+1 (since
it is on the original chain), and for blocks solved after τ (Bn(τ )+2 ) if
zm > τ (Bn(τ )+2 ).
If m = m(Bn(τ ) ) and Bn(τ ) is chained to p(Bn ), if m deviated and chained
Bn(τ )+1 to Bn(τ ) , his payoff is
o
Nm (τ (p(Bn )))G(M ) + 2G(M )
Z zm
+ Pr(zm > τ (Bn(τ )+2 ))E[ dNm (t)G(M )dt|zm > τ (Bn(τ )+2 )].
τBn(τ )+2
(16)
m’s fork has succeeded and he earns G(M ) on all blocks solved up to
p(Bn ) on the original chain, plus on Bn(τ ) and Bn(τ )+1 .
If m played the equilibrium strategy and chained Bn(τ )+1 to p(Bn ), his
payoff is
- if zm occurs first,
o
Nm (τ (p(Bn )))(G(M − 1) + G(1)) + 1{m=m(Bn )} G(M − 1) + G(1).
53
- if Bn(τ )+2 is solved by another miner before zm ,
Z zm
o
Nm (τBn )G(M )+G(0)+E[ dNm (t)G(M )dt|zm > τ (Bn(τ )+2 )].
τBn(τ )+2
m’s fork fails, therefore he earns G(M ) for all the blocks he solved
on the original chain up to τ (Bn ) and for the blocs solved after
τ (Bn(τ )+2 ).
Remark that Pr(m = m(Bn(τ )+2 )|m = m(Bn(τ )+1 )) is just the probability
that at any time m solves the next block.
Proof of part b)
34
Again, allowing for G(M − 1) < G(M ) only makes the condition under which the
equilibrium exists more intricate.
54
As earlier, Bn is the last block solved on the original chain. Suppose that
at time τ , miner m has just created a one-block-long fork as long as the
original chain by solving Bn(τ ) that is chained to Bn ’s parent, p(Bn ). The
relevant choice for m at τ is between chaining his next block to Bn(τ ) (the
equilibrium strategy) and chaining it to Bn (the only relevant deviation).
The reasoning is analogous to the proof of Proposition 4 part a), hence we
only sketch it here.
where the first term is the reward for Bn(τ ) . Since G(M − 1) + G(1) =
G(M ) and G(1) = 0, this deviation is not strictly profitable.
where the second term is the reward for Bn(τ )+1 . As earlier, L(τ (Bn(τ )+1 )),
is the expected loss due to one of m’s blocks solved after τ (Bn(τ )+1 ) be-
coming orphaned. S(τ (Bn(τ )+1 )) is the expected benefit from m spot-
ting a double-spending opportunity after τ (Bn(τ )+1 ). Note that both
L(τ (Bn(τ )+1 )) and S(τ (Bn(τ )+1 )) are conditional on m’s information at
τ . For instance, if m already had a double-spending opportunity, then
L(τ (Bn(τ )+1 )) = S(τ (Bn(τ )+1 )) = 0.
55
If instead m played the equilibrium strategy and chained Bn(τ )+1 to Bn(τ ) ,
the chain including Bn(τ ) and Bn(τ )+1 becomes the longest one, and all
miners hereafter chain their blocks to it. Thus m expected payoff is at
least equal to
Z zm
o
Nm (τp(Bn ) )G(M ) + 2G(M ) + E[ dNm (t)G(M )dt|zm ≥ τ (Bn(τ )+2 )]
τ (Bn(τ )+1 )
Proof of part c)
The reasoning is analogous to the proof of Proposition 4 part b), we only
sketch it here. Bn is the last block on the original chain
1. First consider the case in which there is no fork of two consecutive
blocks solved by the same miner and longer than the original chain. For
any miner m who does not have the double-spending opportunity, the
only two relevant choices are to chain his block to Bn (the equilibrium
strategy) and to create a fork and try solving two blocks in a row (the
only relevant deviation). As in the proof for Proposition 1, we can
restrict attention to the cases where the next event is that m either is
hit by a liquidity shock, or solves a block.
- Suppose the next event is zm . If m followed the equilibrium strat-
o o
egy, his payoff is Nm (zm )G(M ) (if there is no fork), or Nm (zm )(G(M −
o
1) + G(1)) = Nm (zm )G(M ) (if a fork has started). If m deviated,
o
his payoff is at most equal to Nm (zm )G(M ).
- Suppose the next event is that m solves block Bn(τ )+1 .
If m followed the equilibrium strategy and chained Bn(τ )+1 to Bn ,
his expected payoff is
Z zm
o
(Nm (τBn ) + 1)G(M ) + E[ dNm (t)G(M )dt|zm ≥ τ (Bn(τ )+1 )]
τ (Bn(τ )+1 )
56
If m deviated and chained Bn(τ )+1 to p(Bn ), his expected payoff is
Since
o
Nm o
(τBn ) ≥ Nm (τp(Bn ) ) + 1{m=m(Bn )} Pr(Bn = p(Bn(τ )+2 )),
2. Consider the case in which there is a fork starting with two blocks
consecutively solved by the same miner and longer than the original
chain. If that fork occurred because one miner exploited a double-
spending opportunity, we are in the same situation as in Proposition
1, and there is no profitable deviation from mining the longest chain.
If that fork occurred for other reasons (off the equilibrium path), a
new fork could still occur because of a double-spending opportunity in
the future. In that case there is no profitable deviation (in particular,
trying to create a fork by solving two blocks in a row is dominated by
the equilibrium strategy), as shown in the first part of c).
QED
Proof of Proposition 7
Let τ f be the time at which the nth block is solved on the original chain.
Hence, Bn(τ f ) is the nth block on the original chain. We say that a chain
“conforms” to technology C if every block on that chain solved after τ f was
mined with technology C. We call “C-chain” the chain that contains Bn(τ f ) ,
conforms to C, and preexists all other chains containing Bn(τ f ) and conform-
C
ing to C. Nm (τ ) is the number of blocks solved by m up to τ on the C-chain.
Our candidate equilibrium strategy specifies the following:
a) For every τ < τ f , miners chain their block to the last block on the original
chain,
57
b) For every τ ≥ τ f , miners choose C = 0 and chain their block to the last
block on the chain that contains Bn(τ f ) , conforms to C = 0, and preexists
all other chains containing Bn(τ f ) and conforming to C = 0. If such a
chain does not exist, miners choose C = 0 and chain their block to Bn(τ f ) .
The first term is m’s rewards from blocks he solved on the 0-chain up to
τ . The second term is the reward from solving Bn(τ )+1 , and the last term
is the expected value of solving future blocks on the 0-chain.
If instead, miner m deviated and chained his block to another block than
the last one on the 0-chain, using any technology C, his payoff is
0
Nm (τ )(1 + bm (0))G(M ) + (1 + bm (C))G(1)
Z zm
+ E[ dNm (t)(1 + bm (0))G(M )dt|zm ≥ τ (Bn(τ )+1 )]
τ (Bn(τ )+1 )
Hence, the only difference between m’s payoff if he deviates and his equi-
librium payoff is the reward from solving block Bn(τ )+1 . This reward is
(1 + bm (C))G(1) = 0 if he deviates and (1 + bm (0))G(M ) > 0 if he plays
the equilibrium strategy. It follows that a deviation is not profitable.
58
Proof of Proposition 8
We use the same notation as in the proof of Proposition 7 for the C-chain.
To define our equilibrium strategies, we need to introduce the following
condition, which we will derive explicitly in the proof:
and for m ≤ K
a) Before the hardfork: If τ < τ f , miners chain their block to the last block
on the original chain.
c) After the hardfork off-path: Suppose τ > τ f and Condition 3 does not
f
hold. Let ∆ω ≡ ω τ \ ω τ (i.e., ∆ω contains the history of the game
between τ f and τ ). Then for every τ 0 ≥ τ , all miners play the strategy
0
prescribed after history ω τ \∆ω that is defined in b). In playing strategies
defined in b), miners consider that the 0-chain and the 1-chain are defined
0
with respect to history ω τ \ ∆ω.
59
We need to prove that a miner does not have a profitable one shot devi-
ation from σ ∗ . We hereafter consider each of the cases above in turn.
60
under the equilibrium strategy.35 It follows that there is no profitable
deviation if
Pr(Nm (τ 0 ) − Nm (τ ) = 1)(G(K) − (1 + b)G(M − K)) ≤
( )
0 0 f
(Nm (τ ) − Nm (τ ))(1 + b)(G(M − K) − G(M − K − 1))
Pr(zm = τ 0 ) 1 1
,
−(Nm (τ ) − Nm (τ f ))(G(K + 1) − G(K)))
which is exactly inequality (18) in Condition 3.
61
Proof of Proposition 9
See first that miner m’s participation constraint is
X G(M )
hi ≤ . (20)
i∈M
cm X
! !2
X X X
h∗i − cm h∗i = h∗m . (21)
i∈M
G(M ) i∈M
(M − 1) G(M ) X
P = h∗m
i∈M c i X i∈M
X G(M ) M − 1
h∗i = P ,
i∈M
X i∈M ci
62
which is exactly (11) in Proposition 9. Last, replacing h∗m into miner m’s
objective function, one obtains that his equilibrium profit is
2
G(M ) (M − 1)cm
1− P .
λm X i∈M ci
63
References
Biais, B., T. Foucault and S. Moinas, 2016, “Equilibrium Fast-Trading,” Jour-
nal of Financial Economics, 116(2), 292–313.
Eyal, I., and E. G. Sirer, 2016, “Majority is not enough: Bitcoin mining is
vulnerable,” in International Conference on Financial Cryptography and
Data Security, Springer, 436–454.
Lerner, J, and J. Tirole, 2002, “Some simple economics of open source,” The
Journal of Industrial Economics, 2, 197-234.
64
Narayanan, A., july 28, 2015, “Analyzing the 2013 Bitcoin fork:
centralized decision-making saved the day,” http://freedom-to-
tinker.com/2015/07/28/analyzing-the-2013-bitcoin-fork-centralized-
decision-making-saved-the-day.
Teutsch, J., S. Jain, and P. Saxena, 2016, “When cryptocurrencies mine their
own business,” Financial Cryptography and Data Security (FC 2016).
65