Skip to content

Commit

Permalink
Merge pull request #86 from OffchainLabs/update-node-version
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatSoshiant authored Jan 27, 2023
2 parents dd593b5 + 5429120 commit b63eb01
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arbitrum-docs/node-running/running-a-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Note: If you’re interested in accessing an Arbitrum chain, but you don’t wan

### Required Artifacts

- Latest Docker Image: `offchainlabs/nitro-node:v2.0.9-51f9452`
- Latest Docker Image: `offchainlabs/nitro-node:v2.0.10-73224e3`

- Arbitrum One Nitro Genesis Database Snapshot

Expand Down Expand Up @@ -51,7 +51,7 @@ Note: If you’re interested in accessing an Arbitrum chain, but you don’t wan
- Note that is important that `/some/local/dir/arbitrum` already exists, otherwise the directory might be created with `root` as owner, and the docker container won't be able to write to it

```shell
docker run --rm -it -v /some/local/dir/arbitrum:/home/user/.arbitrum -p 0.0.0.0:8547:8547 -p 0.0.0.0:8548:8548 offchainlabs/nitro-node:v2.0.9-51f9452 --l1.url https://l1-node:8545 --l2.chain-id=<L2ChainId> --http.api=net,web3,eth,debug --http.corsdomain=* --http.addr=0.0.0.0 --http.vhosts=*
docker run --rm -it -v /some/local/dir/arbitrum:/home/user/.arbitrum -p 0.0.0.0:8547:8547 -p 0.0.0.0:8548:8548 offchainlabs/nitro-node:v2.0.10-73224e3 --l1.url https://l1-node:8545 --l2.chain-id=<L2ChainId> --http.api=net,web3,eth,debug --http.corsdomain=* --http.addr=0.0.0.0 --http.vhosts=*
```

- Note that if you are running L1 node on localhost, you may need to add `--network host` right after `docker run` to use docker host-based networking
Expand Down Expand Up @@ -104,11 +104,11 @@ Note: If you’re interested in accessing an Arbitrum chain, but you don’t wan
- The arb-relay is in the same docker image
- Here is an example of how to run nitro-relay for Arbitrum One:
```shell
docker run --rm -it -p 0.0.0.0:9642:9642 --entrypoint relay offchainlabs/nitro-node:v2.0.9-51f9452 --node.feed.output.addr=0.0.0.0 --node.feed.input.url=wss://arb1.arbitrum.io/feed
docker run --rm -it -p 0.0.0.0:9642:9642 --entrypoint relay offchainlabs/nitro-node:v2.0.10-73224e3 --node.feed.output.addr=0.0.0.0 --node.feed.input.url=wss://arb1.arbitrum.io/feed
```
- Here is an example of how to run nitro-node for Arbitrum One with custom relay:
```shell
docker run --rm -it -v /some/local/dir/arbitrum:/home/user/.arbitrum -p 0.0.0.0:8547:8547 -p 0.0.0.0:8548:8548 offchainlabs/nitro-node:v2.0.9-51f9452 --l1.url=https://l1-mainnet-node:8545 --l2.chain-id=42161 --http.api=net,web3,eth,debug --http.corsdomain=* --http.addr=0.0.0.0 --http.vhosts=* --node.feed.input.url=ws://local-relay-address:9642
docker run --rm -it -v /some/local/dir/arbitrum:/home/user/.arbitrum -p 0.0.0.0:8547:8547 -p 0.0.0.0:8548:8548 offchainlabs/nitro-node:v2.0.10-73224e3 --l1.url=https://l1-mainnet-node:8545 --l2.chain-id=42161 --http.api=net,web3,eth,debug --http.corsdomain=* --http.addr=0.0.0.0 --http.vhosts=* --node.feed.input.url=ws://local-relay-address:9642
```

### Running a Validator
Expand All @@ -117,6 +117,6 @@ Note: If you’re interested in accessing an Arbitrum chain, but you don’t wan
- Running a validator in `Watchtower` mode is the same as running an archive Nitro node with `--node.validator.enable --node.validator.strategy=Watchtower`
- Here is an example of how to run validator for Arbitrum One:
```shell
docker run --rm -it -v /some/local/dir/arbitrum:/home/user/.arbitrum offchainlabs/nitro-node:v2.0.9-51f9452 --l1.url=https://l1-mainnet-node:8545 --l2.chain-id=42161 --node.caching.archive --node.validator.enable --node.validator.strategy=Watchtower
docker run --rm -it -v /some/local/dir/arbitrum:/home/user/.arbitrum offchainlabs/nitro-node:v2.0.10-73224e3 --l1.url=https://l1-mainnet-node:8545 --l2.chain-id=42161 --node.caching.archive --node.validator.enable --node.validator.strategy=Watchtower
```
- If a deviation is detected, a validator in Watchtower mode will log an error containing the string `found incorrect assertion in watchtower mode`

1 comment on commit b63eb01

@vercel
Copy link

@vercel vercel bot commented on b63eb01 Jan 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.