Add fork choice bug fixes.

- Further bug fixes from testing.
- Simplify the testing framework.
- Add tests for longest chain and GHOST vs bitwise GHOST.
This commit is contained in:
Age Manning
2019-02-19 23:06:35 +11:00
parent 2394f64329
commit fd1edaf805
6 changed files with 99 additions and 53 deletions

View File

@@ -192,7 +192,7 @@ impl<T: ClientDB + Sized> ForkChoice for SlowLMDGhost<T> {
let latest_votes = self.get_latest_votes(&start_state_root, start.slot(), spec)?;
let mut head_hash = Hash256::zero();
let mut head_hash = *justified_block_start;
loop {
debug!("FORKCHOICE: Iteration for block: {}", head_hash);