From 1db4639790690b26a9d8272ce5549c9ea9d00ab2 Mon Sep 17 00:00:00 2001 From: David Date: Mon, 15 Jan 2024 01:13:23 +0800 Subject: [PATCH] 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")