Launching a Local Blockchain
To build a docker image hosting a local test blockchain docker image with Arbitrum smart contracts already deployed, run:
To start the local blockchain inside the Arbitrum monorepo, run:
Note that stopping and restarting the client will lose all blockchain state.
Launching the chain
To set up a local rollup chain using the Arbitrum geth docker image, run the following from the root arbitrum directory. You may also run this command from another location, adjusting your path accordingly.
./scripts/setup_local_rollup.py [contract_path] [validator_count]
setup_local_rollup command will perform two main tasks 1) Launch an Arbitrum Rollup chain on the local testnet 2) Create a
validator-states folder. This folder contains pre-seeded wallets for the created validators which are prepared for launch. It serves as a lightweight simulation of an enviroment where the validators are running on multiple machines.
Deploying your validators
To launch a set of docker images containing your validators, run:
arb_deploy.py takes a path to the validator-states created in the previous step. Unlike the blockchain docker image, the validators can be stopped and restarted without losing any state.