diff --git a/consensus/proto_array/src/proto_array.rs b/consensus/proto_array/src/proto_array.rs index 25a1f7e7f9..6b338147cf 100644 --- a/consensus/proto_array/src/proto_array.rs +++ b/consensus/proto_array/src/proto_array.rs @@ -1380,8 +1380,6 @@ impl ProtoArray { } else { let children = self .nodes - .get(node.proto_node_index..) - .ok_or(Error::InvalidNodeIndex(node.proto_node_index))? .iter() .enumerate() .filter(|(_, child_node)| {