Browse Source

fix validation

mohab metwally 3 years ago
parent
commit
662584db2a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/consensus/validator.rs

+ 3 - 0
src/consensus/validator.rs

@@ -652,6 +652,9 @@ impl ValidatorState {
         if max_length==0 {
             return Ok((vec![], vec![]))
         }
+        if max_length==0 {
+            return Ok((vec![], vec![]))
+        }
 
         // Starting finalization
         let mut fork = self.consensus.forks[fork_index as usize].clone();