Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Latest commit

 

History

History
50 lines (34 loc) · 1.24 KB

NODE_OPERATOR.md

File metadata and controls

50 lines (34 loc) · 1.24 KB

Setup for Node Operators

Deps

install & generate

npm ci && npm run generate

Deploy a new Hubble network

Skip if you're going to join an existing network

# See ./scripts/deploy.ts for additional options
npm run deploy -- \
    --url https://your.eth.provider:8545 \
    --key PRIVATE_KEY_HEX

Setup fee recievers

Skip if you only need a syncing node.

This script will register your public key and setup the states where your proposer will recieve fees when active.

Note that a proposer will need to be active on the hubble network you are joining in order to to create (pack) the new states/deposits. You may also need to create additional deposits (using the contract DepositManager.sol:depositFor) so that the proposer has enough deposits to pack.

# See ./scripts/feeReceivers.ts for additional options
npm run feeReceivers -- \
    --url https://your.eth.provider:8545 \
    --key PRIVATE_KEY_HEX
    --genesisPath ./genesis.json
    --configPath ./your-node-config.json

Run node

npm run node -- --configPath ./your-node-config.json

Docker/container

TODO