From 8033e31728c946a80fdd3d07f737241c7e19edf8 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 26 May 2023 14:36:58 +0800 Subject: [PATCH] feat(pkg): do not return error when genesis block not found (#244) --- pkg/rpc/methods.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/rpc/methods.go b/pkg/rpc/methods.go index 0382d5421..d6c2402bc 100644 --- a/pkg/rpc/methods.go +++ b/pkg/rpc/methods.go @@ -69,7 +69,9 @@ func (c *Client) ensureGenesisMatched(ctx context.Context) error { } } - return fmt.Errorf("genesis block not found in TaikoL1") + log.Warn("Genesis block not found in TaikoL1") + + return nil } // WaitTillL2Synced keeps waiting until the L2 execution engine is fully synced.