Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add orbit validator setting docs #1290

Merged
merged 6 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Here we describe different strategies that validators follow and provide instruc
```shell
docker run --rm -it -v /some/local/dir/arbitrum:/home/user/.arbitrum @latestNitroNodeImage@ --parent-chain.connection.url=https://l1-mainnet-node:8545 --chain.id=42161 --node.staker.enable --node.staker.strategy=Defensive --parent-chain.wallet.password="SOME SECURE PASSWORD"
```
- For orbit chains, you need to set `--chain.info-json=<Orbit Chain's chain info>` instead of `--chain.id=<chain id>`
Jason-W123 marked this conversation as resolved.
Show resolved Hide resolved
- To verify validator is working, this log line shows the wallet is setup correctly:
```shell
INFO [09-28|18:43:49.367] running as validator txSender=0x... actingAsWallet=0x... whitelisted=true strategy=Defensive
Expand All @@ -66,3 +67,10 @@ Here we describe different strategies that validators follow and provide instruc
- `txSender` and `actingAsWallet` should both be present and not `nil`
- The log line `validation succeeded` shows that the L2 block validator is working
- The log line `found correct assertion` shows that the L1 validator is working

#### Orbit chains: grant whitlelist

- You need to be chain owner to grant whitlelist to a new validator address:
- Find your `upgradeExecutor` contract address.
- Send trancation to method `executeCall` of `upgradeExecutor` contract and set the `target` address to your rollup contract address, set the `targetCalldata` to `0xa3ffb772{Your new whitelist validator address}`. (`0xa3ffb772` is the signature of `setValidator(address[],bool[])`)
- Call to `isValidator(address)` of your rollup contract and check the result.
Jason-W123 marked this conversation as resolved.
Show resolved Hide resolved
Jason-W123 marked this conversation as resolved.
Show resolved Hide resolved
7 changes: 7 additions & 0 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,13 @@ const sidebars = {
// q: why use an anchor html tag here?
// a: see note at end of file
},
{
type: 'html',
value:
'<a class="menu__link menu__list-item" href="/run-arbitrum-node/more-types/run-validator-node">Add new validators to Orbit chain <span class="other-section-icon">↓</span></a>',
// q: why use an anchor html tag here?
// a: see note at end of file
},
{
type: 'doc',
id: 'launch-orbit-chain/concepts/anytrust-orbit-chain-keyset-generation',
Expand Down