@@ -403,7 +403,7 @@ func staticConsistencyProbes(dir string) error {
403403 {0 , 0 , root1 , root2 , proof1 , "sizes are equal (zero) but roots are not" , true },
404404 {1 , 1 , root1 , root2 , proof1 , "sizes are equal (one) but roots are not" , true },
405405 // Sizes that are always consistent.
406- {0 , 0 , root1 , root1 , proof1 , "sizes are equal (zero) and proof is empty" , false },
406+ {0 , 0 , root1 , root1 , proof1 , "sizes are equal (zero) and proof is empty" , true },
407407 {0 , 1 , root1 , root2 , proof1 , "size1 is zero and does not equal size2" , true },
408408 {1 , 1 , root2 , root2 , proof1 , "sizes are equal (one) and proof is empty" , false },
409409 // Time travel to the past.
@@ -418,6 +418,7 @@ func staticConsistencyProbes(dir string) error {
418418 {0 , 0 , sha256EmptyTreeHash , sha256EmptyTreeHash , proof2 , "sizes match but proof is not empty and sizes are zero" , true },
419419 {1 , 1 , sha256EmptyTreeHash , sha256EmptyTreeHash , proof2 , "sizes match but proof is not empty and sizes are one" , true },
420420 // Fail to validate empty tree
421+ {0 , 1 , sha256EmptyTreeHash , root2 , proof1 , "size1 is zero and size2 is not zero" , true },
421422 {0 , 1 , sha256EmptyTreeHash , sha256EmptyTreeHash , proof2 , "consistency check on empty tree (size1 is zero) is useless" , true },
422423 }
423424
0 commit comments