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 with 1 or more validators, run the following from the root arbitrum repo.
yarn demo:initialize [--validatorcount N=1]
demo:initialize 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:
Unlike the blockchain docker image, the validators can be stopped and restarted without losing any state.