LogoLogo
  • Introduction
  • Testnet
    • 0G-Labs
      • Network Overview
      • Installation
        • Storage Node
        • Data Availability Node
        • Data Availability Client
    • Aztec
      • Installation
      • Register as Validator
    • Coretensor
      • Installation
    • Cysic
      • Installation
    • Dill
      • Network Overview
      • Installation
    • Drosera
      • Installation
        • Operator
        • Add Second Operator
        • Trapper
    • Farcaster
      • Installation
    • Warden
      • Network Overview
      • Installation
      • Snapshot & State Sync
      • Validator Setup
  • Mainnet
    • Humanode
      • Installation
    • Initverse
      • Installation
  • Archieve
    • Privasea
      • Installation
  • Services
  • My Contact
Powered by GitBook
On this page
  • Configuration
  • Whitelist Your 2nd Operator
  • Register 2nd Operator
  • Run Operators
  • Useful Commands (If Running Two Operators)

Was this helpful?

  1. Testnet
  2. Drosera
  3. Installation

Add Second Operator

PreviousOperatorNextTrapper

Last updated 5 days ago

Was this helpful?

Configuration

Whitelist Your 2nd Operator

Create a new EVM wallet, Fund it with Holeksy ETH and write down its Privatekey (2nd_Operator_Privatekey) & PublicAddress (2nd_Operator_Address).

Edit Trap Configuration:

cd ~/my-drosera-trap
nano drosera.toml

Edit the following codes at the bottom of drosera.toml:

private_trap = true
whitelist = ["1st_Operator_Address","2nd_Operator_Address"]

Update Trap Configuration:

DROSERA_PRIVATE_KEY=xxx drosera apply --eth-rpc-url your-rpc

Register 2nd Operator

drosera-operator register --eth-rpc-url your-rpc --eth-private-key 2nd_Operator_Privatekey
  • Replace 2nd_Operator_Privatekey with your 2nd Operator Privatekey.

  • Replace your-rpc with your Holesky ETH RPC, you can get it from for free

Edit docker-compose.yaml

cd Drosera-Network
nano docker-compose.yaml

Replace the content of the file with the following codes:

version: '3'
services:
  drosera1:
    image: ghcr.io/drosera-network/drosera-operator:latest
    container_name: drosera-node1
    network_mode: host
    volumes:
      - drosera_data1:/data
    command: node --db-file-path /data/drosera.db --network-p2p-port 31313 --server-port 31314 --eth-rpc-url RPC_URL_1 --eth-backup-rpc-url https://holesky.drpc.org --drosera-address 0xea08f7d533C2b9A62F40D5326214f39a8E3A32F8 --eth-private-key ${ETH_PRIVATE_KEY} --listen-address 0.0.0.0 --network-external-p2p-address ${VPS_IP} --disable-dnr-confirmation true
    restart: always

  drosera2:
    image: ghcr.io/drosera-network/drosera-operator:latest
    container_name: drosera-node2
    network_mode: host
    volumes:
      - drosera_data2:/data
    command: node --db-file-path /data/drosera.db --network-p2p-port 31315 --server-port 31316 --eth-rpc-url RPC_URL_2 --eth-backup-rpc-url https://holesky.drpc.org --drosera-address 0xea08f7d533C2b9A62F40D5326214f39a8E3A32F8 --eth-private-key ${ETH_PRIVATE_KEY2} --listen-address 0.0.0.0 --network-external-p2p-address ${VPS_IP} --disable-dnr-confirmation true
    restart: always

volumes:
  drosera_data1:
  drosera_data2:
  • You can use same RPCs for both RPC_URL_1 & RPC_URL_2.

Edit .env

nano .env

Replace the content of the file with the following codes:

ETH_PRIVATE_KEY=
ETH_PRIVATE_KEY2=
VPS_IP=
  • Enter a value for ETH_PRIVATE_KEY & ETH_PRIVATE_KEY2 (Operators Private key) & VPS_IP.

Run Operators

Stop old docker node:

docker compose down -v
docker stop drosera-node
docker rm drosera-node

Run Operators:

docker compose up -d

Opt-in 2nd Operator

Method 2: via CLI

drosera-operator optin --eth-rpc-url https://ethereum-holesky-rpc.publicnode.com --eth-private-key 2nd_Operator_Privatekey --trap-config-address Trap_Address
  • Replace 2nd_Operator_Privatekey & Trap_Address

Restart Operators

cd ~/Droseta-Network
docker compose up -d

Useful Commands (If Running Two Operators)

Make sure you are in Operators directory:

cd ~/Drosera-Network

Restart Operators:

docker compose up -d
# OR
docker compose restart

Restart Operators seprately:

docker compose up -d drosera1
docker compose up -d drosera2
# OR
docker compose restart drosera1
docker compose restart drosera2

Kill Operators:

docker compose down -v

Replace RPC_URL_1 & RPC_URL_2 with your own Ethereum Holesky RPC, You can use or or even a reliable public rpc of holesky network to create Ethereum Holesky RPC.

Method 1: Login with your 2nd Operator wallet in , and Opt-in to your Trap

Alchemy
Alchemy
QuickNode
Dashboard