Fix bug in rev block iter

This commit is contained in:
Paul Hauner
2019-06-06 00:31:18 -04:00
parent ed9f655877
commit f52d66a136

View File

@@ -53,7 +53,7 @@ impl<T: EthSpec, U: Store> Iterator for BlockRootsIterator<T, U> {
type Item = Hash256;
fn next(&mut self) -> Option<Self::Item> {
if self.slot == 0 {
if (self.slot == 0) || (self.slot > self.beacon_state.slot) {
return None;
}