Pharos Test

image

💻 Sistem Gereksinimleri

Bileşenler
Minimum Gereksinimler

CPU

32 cores, 2.8GHz or faster, AMD Milan EPYC or Intel Xeon Platinum

RAM

256 GB

Storage

5 TB SSD with at least 350MiB/s bandwidth and 30000 IOPS

1. Create working directory and download binary package

export WORKSPACE=pharos
mkdir -p $HOME/data/$WORKSPACE && cd $HOME/data/$WORKSPACE
wget https://github.com/PharosNetwork/resources/releases/latest/download/pharos-v0.11.1-034a3b78.tar.gz
tar -zxvf pharos-v0.11.1-034a3b78.tar.gz
The extracted package contains:

bin/pharos_light - Pharos node binary

bin/pharos_cli - Pharos CLI tool

bin/libevmone.so - EVM execution engine library

bin/VERSION - Version information

2. Download configuration files

Download the genesis configuration file:

Download the node configuration file (choose one based on your node type):

For Archive/Full/Validator Node:

Note: Pruning is disabled by default. To enable pruning, see Enable Pruning in Pharos Node.

For TraceDB Node:

3. Download and setup ops tool

Download the latest ops tool for Linux:

4. Set password for key encryption

Set a password that will be used to encrypt your node's cryptographic keys:

Important:

Remember this password - you'll need it to start your node

The password is stored in ./.password file

Keep this password secure and backed up

5. Generate cryptographic keys

Generate the domain and stabilizing keys for your node:

This will create the following files in the ./keys/ directory:

5B Get Node ID

Get the Node ID from your domain public key:

This calculates the SHA256 hash of the domain public key (with prefix stripped) and displays the Node ID.

Options:

--keys-dir - Directory containing domain.pub (default: ./keys)

6. Bootstrap the node

Initialize the node with genesis state:

This command will:

Create the storage database

Initialize the genesis block

Prepare the node for first startup

7. Start the node Manuel

Start the Pharos node service:

The node will start in daemon mode and begin syncing with the network.

Check the logs to verify the node is running:

7B Stop Node

Stop the running node:

  • Graceful stop

  • Force stop

8. Setup systemd service

For production deployments, it's recommended to manage the Pharos node with systemd.

Create a systemd service file:

Enable and start the service:

Check service status:

View logs:

Note: If not using systemd, you can manually stop the node with pkill pharos_light and restart with ./ops start --config ./pharos.conf

Directory Structure After deployment, your directory structure should look like:

Validator Management

Register as Validator Register your node as a validator on the network:

Set private key via environment variable (required)

Exit Validator

Enable Pruning

For Binary Deployment:

Last updated