From de728294d97da5565a1970b88138648411ce0489 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Wed, 21 Aug 2024 21:24:44 +0200 Subject: [PATCH] check proofs for both blocks in tests --- core/state_processor_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/state_processor_test.go b/core/state_processor_test.go index 83d06a5aa8..307ab75c5b 100644 --- a/core/state_processor_test.go +++ b/core/state_processor_test.go @@ -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 { t.Fatal(err) }