From 0a080e4f27ccd5a653e739f4c191f91fe132aff5 Mon Sep 17 00:00:00 2001 From: mratsim Date: Tue, 8 Jan 2019 18:48:12 +0100 Subject: [PATCH] Remove the vote count closure, unlike the spec we use a count table --- beacon_chain/fork_choice.nim | 5 ----- 1 file changed, 5 deletions(-) diff --git a/beacon_chain/fork_choice.nim b/beacon_chain/fork_choice.nim index 522038ac3..613fcad69 100644 --- a/beacon_chain/fork_choice.nim +++ b/beacon_chain/fork_choice.nim @@ -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]()