check proofs for both blocks in tests

This commit is contained in:
Guillaume Ballet 2024-08-21 21:24:44 +02:00 committed by Felix Lange
parent 7f99bdc137
commit de728294d9

View file

@ -513,7 +513,12 @@ func TestProcessVerkle(t *testing.T) {
} }
}) })
err := verkle.Verify(proofs[1], chain[0].Root().Bytes(), chain[1].Root().Bytes(), statediffs[1]) // Check proof for both blocks
err := verkle.Verify(proofs[0], gspec.ToBlock().Root().Bytes(), chain[0].Root().Bytes(), statediffs[0])
if err != nil {
t.Fatal(err)
}
err = verkle.Verify(proofs[1], chain[0].Root().Bytes(), chain[1].Root().Bytes(), statediffs[1])
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }