Ensure fork_choice tests pass under v0.5.0

This commit is contained in:
Paul Hauner
2019-03-17 18:56:05 +11:00
parent 6df5eee7f4
commit df3f8df7bd
2 changed files with 6 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ impl<T: ClientDB + Sized> ForkChoice for LongestChain<T> {
) -> Result<(), ForkChoiceError> {
// add the block hash to head_block_hashes removing the parent if it exists
self.head_block_hashes
.retain(|hash| *hash != block.parent_root);
.retain(|hash| *hash != block.previous_block_root);
self.head_block_hashes.push(*block_hash);
Ok(())
}