Skip to content

A complete environment for nitro-based service including sequencer, batch-poster, validator, and a coordinator.

License

Notifications You must be signed in to change notification settings

chainflip-io/nitro-testnode

 
 

Repository files navigation

Nitro Testnode

General

Nitro-testnode brings up a full environment for local nitro testing including a dev-mode geth L1, and multiple instances with different roles.

Requirements

  • bash shell
  • docker and docker-compose

All must be installed in PATH.

Usage

Using latest nitro release (recommended)

Check out the release branch of the repository.

Notice: release branch may be force-pushed at any time.

git clone -b release --recurse-submodules https://github.com/chainflip-io/nitro-testnode.git
cd nitro-testnode

Initialize the node

./test-node.bash --init

To see more options, use --help.

Using current nitro code

Check out the nitro repository. Use the test-node submodule of nitro repository.

Notice: testnode may not always be up-to-date with config options of current nitro node, and is not considered stable when operated in that way.

git clone --recurse-submodules https://github.com/OffchainLabs/nitro.git
cd nitro/nitro-testnode

Initialize the node in dev-mode (this will build the docker images from source)

./test-node.bash --init --dev

To see more options, use --help.

Working with docker containers

sequencer is the main docker to be used to access the nitro testchain. It's http and websocket interfaces are exposed at localhost ports 8547 and 8548 ports, respectively.

Stopping, restarting nodes can be done with docker-compose.

Helper scripts

Some helper scripts are provided for simple testing of basic actions. For help, see:

./test-node.bash script --help

Contact

Discord - Arbitrum

Twitter: Arbitrum

About

A complete environment for nitro-based service including sequencer, batch-poster, validator, and a coordinator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 77.2%
  • Shell 21.9%
  • Dockerfile 0.9%