Best Practices

This document covers best practices for OP Succinct Lite deployment setup.

Mock Mode

When using mock mode, the proposer will not use the Succinct Prover Network to generate proofs. Instead, it will generate mock proofs using the public values from execution. This is useful for testing since it is much faster than generating real proofs from the Succinct Prover Network.

To enable mock mode, set the MOCK_MODE environment variable to true in the .env.proposer file.

SafeDB Configuration

Enabling SafeDB in op-node

SafeDB is a critical component for efficient L1 head determination. When SafeDB is not enabled, the system falls back to timestamp-based L1 head estimation, which can lead to several issues:

  1. Less reliable derivation
  2. Potential cycle count blowup for derivation

To enable SafeDB in your op-node, see Consensus layer configuration options (op-node).

This ensures that L1 head can be efficiently determined without relying on the more expensive fallback mechanism.