mirror of
https://github.com/pezkuwichain/consensus.git
synced 2026-11-29 16:19:58 +00:00
fix minor typos
This commit is contained in:
1 parent
3f1a8fb1cf
commit
2f9e6db4b5
2 files changed
+3
-3
No files matched your search
+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