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")