Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.11.0
type Config struct {
// RPCAddr address to bind RPC server to, to serve external supervisor nodes.
// Optional. This will soon be required: running op-node without supervisor is being deprecated.
RPCAddr string
// RPCPort port to bind RPC server to, to serve external supervisor nodes.
// Binds to any available port if set to 0.
RPCPort int
// RPCJwtSecretPath path of JWT secret file to apply authentication to the interop server address.
RPCJwtSecretPath string
}
func (*Config) Setup ¶ added in v1.11.0
func (cfg *Config) Setup(ctx context.Context, logger log.Logger, rollupCfg *rollup.Config, l1 L1Source, l2 L2Source, m opmetrics.RPCMetricer) (SubSystem, error)
Setup creates an interop sub-system. This drives the node syncing. If setup returns a nil system (without error) the node should fall back to legacy mode.
Click to show internal directories.
Click to hide internal directories.