Remove the vote count closure, unlike the spec we use a count table
This commit is contained in:
parent
423f632606
commit
0a080e4f27
|
@ -232,11 +232,6 @@ func lmdGhost*(
|
|||
# Nim implementation for cumulative frequencies at
|
||||
# https://github.com/numforge/laser/blob/990e59fffe50779cdef33aa0b8f22da19e1eb328/benchmarks/random_sampling/fenwicktree.nim
|
||||
|
||||
proc childBlockVoteCount(child: Eth2Digest): int =
|
||||
for target, votes in rawVoteCount.pairs:
|
||||
if store.get_ancestor(target, store.blocks[child].slot) == child:
|
||||
result += votes
|
||||
|
||||
var head = state.latest_block_roots[state.slot mod LATEST_BLOCK_ROOTS_LENGTH]
|
||||
var childVotes = initCountTable[Eth2Digest]()
|
||||
|
||||
|
|
Loading…
Reference in New Issue