From 9b226c7a322256a8afa58c0f5b5aa8d3ba4bfe8e Mon Sep 17 00:00:00 2001 From: Scott Fairclough <70711990+hexoscott@users.noreply.github.com> Date: Wed, 25 Sep 2024 10:22:13 +0100 Subject: [PATCH] downgrade root mismatch to debug (#1223) This can be misleading depending on the timing in the stage and causes end users to think something is wrong --- zk/stages/stage_batches.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zk/stages/stage_batches.go b/zk/stages/stage_batches.go index c13f3c43f68..97a0ed739c5 100644 --- a/zk/stages/stage_batches.go +++ b/zk/stages/stage_batches.go @@ -302,7 +302,7 @@ LOOP: } case *types.BatchEnd: if entry.StateRoot != lastBlockRoot { - log.Warn(fmt.Sprintf("[%s] batch end state root mismatches last block's: %x, expected: %x", logPrefix, entry.StateRoot, lastBlockRoot)) + log.Debug(fmt.Sprintf("[%s] batch end state root mismatches last block's: %x, expected: %x", logPrefix, entry.StateRoot, lastBlockRoot)) } // keep a record of the last block processed when we receive the batch end if err = hermezDb.WriteBatchEnd(lastBlockHeight); err != nil {