From e485f3ee75ff3e34da479a93b8d773ea52fd2e08 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Thu, 20 Jun 2019 18:44:50 +1000 Subject: [PATCH] Fix bug in reduced tree fork choice --- eth2/lmd_ghost/src/reduced_tree.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eth2/lmd_ghost/src/reduced_tree.rs b/eth2/lmd_ghost/src/reduced_tree.rs index 9a869c1eb..f35f50e3a 100644 --- a/eth2/lmd_ghost/src/reduced_tree.rs +++ b/eth2/lmd_ghost/src/reduced_tree.rs @@ -173,6 +173,14 @@ where } } + self.latest_votes.insert( + validator_index, + Some(Vote { + slot, + hash: block_hash, + }), + ); + self.add_latest_message(validator_index, block_hash)?; Ok(())