From 4c018728150857c484ef247ce03045ba462ce80e Mon Sep 17 00:00:00 2001 From: David Date: Mon, 15 Jan 2024 11:10:28 +0800 Subject: [PATCH] feat(pkg): fix a log issue in `ensureGenesisMatched` && update a config (#504) --- pkg/rpc/methods.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/rpc/methods.go b/pkg/rpc/methods.go index 3de804a60..11c621ef2 100644 --- a/pkg/rpc/methods.go +++ b/pkg/rpc/methods.go @@ -29,7 +29,7 @@ var ( syncProgressRecheckDelay = 12 * time.Second waitL1OriginPollingInterval = 3 * time.Second defaultWaitL1OriginTimeout = 3 * time.Minute - defaultMaxTransactionsPerBlock = uint64(150) + defaultMaxTransactionsPerBlock = uint64(79) ) // ensureGenesisMatched fetches the L2 genesis block from TaikoL1 contract, @@ -73,7 +73,10 @@ func (c *Client) ensureGenesisMatched(ctx context.Context) error { common.BytesToHash(l2GenesisHash[:]), ) } + + return nil } + log.Warn("Genesis block not found in TaikoL1") return nil