Run a Community Replica
Learn how to run a Boba replica to generate ground truth state roots

Community Replica Service

The ops/docker-compose-replica-service.yml docker-compose project runs a local replica of the Boba Mainnet l2geth. This service allows you run a local copy of the L2, which is useful for generating analyics for blockexplorers.

Prerequisites

- docker - docker-compose

Start Replica service

Configuration

Replace INFURA_KEY with your own key in docker-compose-replica-service.yml. You can get a free Infura key from https://infura.io.

Start the docker

Start the replica service via:
1
cd ops/
2
docker-compose -f docker-compose-replica-service.yml up -d -V
Copied!
This will pull two images from docker hub:
    data-tranport-layer: service that indexes transaction data from the L1 chain and L2 chain
    replica: L2 geth node running in sync mode

Common Errors

If you get this:
1
(node:1) UnhandledPromiseRejectionWarning: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.1.0)
Copied!
then you forgot to replace INFURA_KEY in this line: DATA_TRANSPORT_LAYER__L1_RPC_ENDPOINT: https://rinkeby.infura.io/v3/INFURA_KEY with your Infura key. Your Infura key will be a string like c655138ed943455123456789123456789c, so the final line will look something like this:
1
DATA_TRANSPORT_LAYER__L1_RPC_ENDPOINT: https://rinkeby.infura.io/v3/c655138ed943455123456789123456789c
Copied!
Last modified 12d ago