Browse Source

bin/ircd: fix the tests

ghassmo 3 years ago
parent
commit
6b1a6ff3e8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bin/ircd/src/mvc.rs

+ 2 - 1
bin/ircd/src/mvc.rs

@@ -211,9 +211,10 @@ impl Model {
         // set the new root
         // set the new root
         if let Some(ancestor) = highest_ancestor {
         if let Some(ancestor) = highest_ancestor {
             // TODO change this number 
             // TODO change this number 
+            // set to 10 for testing only
             // the ancestor must have at least height > 300
             // the ancestor must have at least height > 300
             let ancestor_height = self.find_height(&self.current_root, ancestor).unwrap();
             let ancestor_height = self.find_height(&self.current_root, ancestor).unwrap();
-            if ancestor_height < 300 {
+            if ancestor_height < 10 {
                 return
                 return
             }
             }