From 75afd2b551bdfb7e4eeb76b4c63b4f00da961f23 Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Thu, 2 Mar 2017 14:42:54 +0100 Subject: [PATCH 1/2] EIP-100: change the difficulty adjustment factor so that it considers existence of ommers --- Paper.tex | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Paper.tex b/Paper.tex index 8f5190a9..799f606f 100644 --- a/Paper.tex +++ b/Paper.tex @@ -464,8 +464,14 @@ \subsubsection{Block Header Validity} \diffadjustment \equiv \left\lfloor\frac{{P(H)_H}_d}{2048}\right\rfloor \end{equation} \begin{equation} -\homesteadmod \equiv \text{max}\left( 1 - \left\lfloor\frac{H_s - {P(H)_H}_s}{10}\right\rfloor, -99 \right) +\homesteadmod \equiv \text{max}\left( x - \left\lfloor\frac{H_s - {P(H)_H}_s}{9}\right\rfloor, -99 \right) \end{equation} +\begin{equation*} +x \equiv \begin{cases} +1 & \text{if} \, \lVert B_\mathbf{U}\rVert = 0 \\ +2 & \text{otherwise} +\end{cases} +\end{equation*} \begin{equation} \expdiffsymb \equiv \left\lfloor 2^{ \left\lfloor H_i \div 100000 \right\rfloor - 2 } \right\rfloor \end{equation} From 29892b487c1c84dc3382881e12df1a36e20cc5f7 Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Tue, 21 Mar 2017 17:12:33 +0100 Subject: [PATCH 2/2] EIP-100: ommers of parent should be counted, not the direct ommers --- Paper.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Paper.tex b/Paper.tex index 799f606f..58eaeaab 100644 --- a/Paper.tex +++ b/Paper.tex @@ -468,7 +468,7 @@ \subsubsection{Block Header Validity} \end{equation} \begin{equation*} x \equiv \begin{cases} -1 & \text{if} \, \lVert B_\mathbf{U}\rVert = 0 \\ +1 & \text{if} \, \lVert P(H)_\mathbf{U}\rVert = 0 \\ 2 & \text{otherwise} \end{cases} \end{equation*}