mirror of
https://github.com/pezkuwichain/consensus.git
synced 2026-04-22 04:27: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]
|
||||
|
||||
Reference in New Issue
Block a user