mirror of
https://github.com/pezkuwichain/consensus.git
synced 2026-04-21 23:47:57 +00:00
fix minor typos
This commit is contained in:
+1
-1
@@ -264,7 +264,7 @@ def setuplists(votelist):
|
||||
flat list of nominators and the latter is a flat list of validator candidates.
|
||||
|
||||
Instead of Python's dict here, you can use anything with O(log n) addition and lookup. We can
|
||||
also use a hashmap like dict, by generating a random constant r and useing H(canid+r) since the
|
||||
also use a hashmap like dict, by generating a random constant r and using H(canid+r) since the
|
||||
naive thing is obviously attackable.
|
||||
'''
|
||||
nomlist = [nominator(votetuple[0], votetuple[1], votetuple[2]) for votetuple in votelist]
|
||||
|
||||
+2
-2
@@ -46,7 +46,7 @@
|
||||
|
||||
\category{} %optional, e.g. invited paper
|
||||
|
||||
\relatedversion{} %optional, e.g. full version hosted on arXiv, HAL, or other respository/website
|
||||
\relatedversion{} %optional, e.g. full version hosted on arXiv, HAL, or other repository/website
|
||||
%\relatedversion{A full version of the paper is available at \url{...}.}
|
||||
|
||||
\supplement{}%optional, e.g. related research data, source code, ... hosted on a repository like zenodo, figshare, GitHub, ...
|
||||
@@ -808,7 +808,7 @@ Then any participant sees that if there is an $n$ such that
|
||||
\item[(ii)] the indicators the last finalized block height of blocks $n-100$ to $n$ in their best chain have median at most $n-1050$ and
|
||||
\item[(iii]) $n$ is the minimum that satisifies (i) and (ii)
|
||||
\end{itemize}
|
||||
then they switch to the best voter set given by block $n$. If the same block at height $n$ is on everyone's best chain, which can be shown to occur with high probability given (i) for many block production mechanisms, then everyone will eventually agree that we should switch to the voter set given by that block. If any $100$ consectutive blocks of the best chain are produced by honest and synchronised block producers then this will only happen if GRANDPA fails to finalize any block in the time it took to produce $1000$ blocks.
|
||||
then they switch to the best voter set given by block $n$. If the same block at height $n$ is on everyone's best chain, which can be shown to occur with high probability given (i) for many block production mechanisms, then everyone will eventually agree that we should switch to the voter set given by that block. If any $100$ consecutive blocks of the best chain are produced by honest and synchronised block producers then this will only happen if GRANDPA fails to finalize any block in the time it took to produce $1000$ blocks.
|
||||
|
||||
\subsection{Alternatives to the last block hash}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user