@@ -402,9 +402,9 @@ func staticConsistencyProbes(dir string) error {
402402 tests := []consistencyProbe {
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 },
405- // Sizes that are always consistent.
406- {0 , 0 , root1 , root1 , proof1 , "sizes are equal (zero) and proof is empty" , false },
405+ {0 , 0 , root1 , root1 , proof1 , "sizes are equal (zero) and proof is empty" , true },
407406 {0 , 1 , root1 , root2 , proof1 , "size1 is zero and does not equal size2" , true },
407+ // Sizes that are always consistent.
408408 {1 , 1 , root2 , root2 , proof1 , "sizes are equal (one) and proof is empty" , false },
409409 // Time travel to the past.
410410 {1 , 0 , root1 , root2 , proof1 , "size1 is greater than size2" , true },
@@ -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