From 6b4d51c7f2e41ef2747a56fef06a2f37a55891c8 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 15 Jan 2024 01:13:23 +0800 Subject: [PATCH 1/2] feat: change `defaultMaxTransactionsPerBlock` to `79` --- 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 3de804a60..af6a42a5c 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, @@ -72,6 +72,8 @@ func (c *Client) ensureGenesisMatched(ctx context.Context) error { nodeGenesis.Hash(), common.BytesToHash(l2GenesisHash[:]), ) + } else { + return nil } } log.Warn("Genesis block not found in TaikoL1") From 34e18082bb82741c9c58130a6314ef338927a535 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 15 Jan 2024 11:04:09 +0800 Subject: [PATCH 2/2] feat: update `ensureGenesisMatched` --- pkg/rpc/methods.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/rpc/methods.go b/pkg/rpc/methods.go index af6a42a5c..11c621ef2 100644 --- a/pkg/rpc/methods.go +++ b/pkg/rpc/methods.go @@ -72,10 +72,11 @@ func (c *Client) ensureGenesisMatched(ctx context.Context) error { nodeGenesis.Hash(), common.BytesToHash(l2GenesisHash[:]), ) - } else { - return nil } + + return nil } + log.Warn("Genesis block not found in TaikoL1") return nil