Configurazione Nodo

Durante la procedura, quando viene richiesto di compilare alcuni campi come il paese o l'e-mail, Γ¨ possibile lasciarli vuoti.

File di configurazione

Inizializza la configurazione dell'applicazione (il comando qua sotto crea e popola il file config.toml)

sudo docker run --rm \
    --volume ${HOME}/.sentinelnode:/root/.sentinelnode \
    sentinel-dvpn-node process config init

Apri il file di configurazione config.toml

sudo nano ${HOME}/.sentinelnode/config.toml

Modifica i campi necessari prendendo i corretti parametri a seconda dell'hosting che hai scelto.

Se hai deciso di ospitare il nodo a casa o in un luogo privato, utilizza le informazioni contenute in Residential IPs qua sotto. Al contrario, se hai deciso di hostare il nodo su un VPS o Akash, utilizza le informazioni contenute in Datacenter IPs.

Config.toml per Residential IPs
[chain]
# Gas limit to set per transaction
gas = 200000

# Gas adjustment factor
gas_adjustment = 1.05

# Gas prices to determine the transaction fee
gas_prices = "0.1udvpn"

# The network chain ID
id = "sentinelhub-2"

# Comma separated Tendermint RPC addresses for the chain
rpc_addresses = "https://rpc.sentinel.co:443,https://rpc.sentinel.quokkastake.io:443,https://rpc.trinityvalidator.com:443"
# Find below some alternative ones
# https://rpc.mathnodes.com:443
# https://rpc-sentinel.whispernode.com:443
# https://rpc.sentinel.chaintools.tech:443
# https://sentinel-rpc.publicnode.com:443

# Timeout seconds for querying the data from the RPC server
rpc_query_timeout = 10

# Timeout seconds for broadcasting the transaction through RPC server
rpc_tx_timeout = 30

# Calculate the transaction fee by simulating it
simulate_and_execute = true

[handshake]
# Enable Handshake DNS resolver (se usi v2ray imposta enable = false)
enable = true

# Number of peers
peers = 8

[keyring]
# Underlying storage mechanism for keys
backend = "file"
# To run the node with autorestart function, write the word "test". Alternatively, you can use the word "file"

# Name of the key with which to sign
from = "operator"
# replace "operator" with your preferred name, but ensure that the value is NOT left empty

[node]
# Time interval between each set_sessions operation
interval_set_sessions = "10s"

# Time interval between each update_sessions transaction
interval_update_sessions = "1h55m0s"

# Time interval between each set_status transaction
interval_update_status = "55m0s"

# IPv4 address to replace the public IPv4 address with
ipv4_address = ""

# API listen-address (porta TCP)
listen_on = "0.0.0.0:<tcp_port>" #for example 0.0.0.0:7777
# this is the TCP port. You can change and ensure to write it down as needed for later use

# Name of the node (sostituisci "your_node_name" con il nome che desiseri)
moniker = "your_node_name"

# Prices for one gigabyte of bandwidth provided
gigabyte_prices = "52573ibc/31FEE1A2A9F9C01113F90BD0BBCCE8FD6BBB8585FAF109A2101827DD1D5B95B8,9204ibc/A8C2D23A1E6F95DA4E48BA349667E322BD7A6C996D8A4AAE8BA72E190F3D1477,1180852ibc/B1C0DDB14F25279A2026BC8794E12B259F8BDA546A3C5132CCAEE4431CE36783,122740ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518,15342624udvpn"

# Prices per hour
hourly_prices = "18480ibc/31FEE1A2A9F9C01113F90BD0BBCCE8FD6BBB8585FAF109A2101827DD1D5B95B8,770ibc/A8C2D23A1E6F95DA4E48BA349667E322BD7A6C996D8A4AAE8BA72E190F3D1477,1871892ibc/B1C0DDB14F25279A2026BC8794E12B259F8BDA546A3C5132CCAEE4431CE36783,18897ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518,10000000udvpn"

# Public URL of the node
remote_url = "https://<ip_node>:<tcp_port>"
# replace ip_node with your host ip and tcp_port with 7777
# example: https://123.456.78.90:7777

# Type of node (puoi scegliere tra wireguard e v2ray)
type = "wireguard"

# Limit max number of concurrent peers
[qos]
max_peers = 250
Config.toml per Datacenter IPs
[chain]
# Gas limit to set per transaction
gas = 200000

# Gas adjustment factor
gas_adjustment = 1.05

# Gas prices to determine the transaction fee
gas_prices = "0.1udvpn"

# The network chain ID
id = "sentinelhub-2"

# Comma separated Tendermint RPC addresses for the chain
rpc_addresses = "https://rpc.sentinel.co:443,https://rpc.sentinel.quokkastake.io:443,https://rpc.trinityvalidator.com:443"
# Find below some alternative ones
# https://rpc.mathnodes.com:443
# https://rpc-sentinel.whispernode.com:443
# https://rpc.sentinel.chaintools.tech:443
# https://sentinel-rpc.publicnode.com:443

# Timeout seconds for querying the data from the RPC server
rpc_query_timeout = 10

# Timeout seconds for broadcasting the transaction through RPC server
rpc_tx_timeout = 30

# Calculate the transaction fee by simulating it
simulate_and_execute = true

[handshake]
# Enable Handshake DNS resolver (se usi v2ray imposta enable = false)
enable = true

# Number of peers
peers = 8

[keyring]
# Underlying storage mechanism for keys
backend = "file"
# To run the node with autorestart function, write the word "test". Alternatively, you can use the word "file"

# Name of the key with which to sign
from = "operator"
# replace "operator" with your preferred name, but ensure that the value is NOT left empty

[node]
# Time interval between each set_sessions operation
interval_set_sessions = "10s"

# Time interval between each update_sessions transaction
interval_update_sessions = "1h55m0s"

# Time interval between each set_status transaction
interval_update_status = "55m0s"

# IPv4 address to replace the public IPv4 address with
ipv4_address = ""

# API listen-address (porta TCP)
listen_on = "0.0.0.0:<tcp_port>" #for example 0.0.0.0:7777
# this is the TCP port. You can change and ensure to write it down as needed for later use

# Name of the node (sostituisci "your_node_name" con il nome che desiseri)
moniker = "your_node_name"

# Prices for one gigabyte of bandwidth provided
gigabyte_prices = "52573ibc/31FEE1A2A9F9C01113F90BD0BBCCE8FD6BBB8585FAF109A2101827DD1D5B95B8,9204ibc/A8C2D23A1E6F95DA4E48BA349667E322BD7A6C996D8A4AAE8BA72E190F3D1477,1180852ibc/B1C0DDB14F25279A2026BC8794E12B259F8BDA546A3C5132CCAEE4431CE36783,122740ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518,15342624udvpn"

# Prices per hour
hourly_prices = "18480ibc/31FEE1A2A9F9C01113F90BD0BBCCE8FD6BBB8585FAF109A2101827DD1D5B95B8,770ibc/A8C2D23A1E6F95DA4E48BA349667E322BD7A6C996D8A4AAE8BA72E190F3D1477,1871892ibc/B1C0DDB14F25279A2026BC8794E12B259F8BDA546A3C5132CCAEE4431CE36783,18897ibc/ED07A3391A112B175915CD8FAF43A2DA8E4790EDE12566649D0C2F97716B8518,4160000udvpn"

# Public URL of the node
remote_url = "https://<ip_node>:<tcp_port>"
# replace ip_node with your host ip and tcp_port with 7777
# example: https://123.456.78.90:7777

# Type of node (puoi scegliere tra wireguard e v2ray)
type = "wireguard"

# Limit max number of concurrent peers
[qos]
max_peers = 250

I campi gigabyte_prices e hourly_prices devono comprendere l'intera stringa, comprese le monete IBC separate da virgole. La semplice inclusione del prezzo udvpn non Γ¨ sufficiente.

Di seguito Γ¨ riportato l'elenco delle monete IBC supportate da Sentinel con le relative variabili di denominazioni:

Tipo di Nodo

A seconda del tipo di nodo specificato nel file config.toml, utilizzare le impostazioni di configurazione corrispondenti.

WireGuard

Inizializza la configurazione di WireGuard

Apri il file wireguard.toml

Prendi nota della porta WireGuard

Wireguard.toml

V2Ray

Inizializza la configurazione di V2Ray

Apri il file v2ray.toml

Prendi nota della porta V2Ray

v2ray.toml

Aggiungi un mnemonic

Aggiungi una chiave per l'account (quella nel file config.toml)

se si dispone giΓ  di un mnemonico e si vuole semplicemente importante un wallete, digita il seguente comando

Ti sarΓ  richiesto di selezionare una passphrase

Verranno forniti un indirizzo dell'operatore (sent1), un indirizzo del nodo (sentnode1) e un mnemonic da annotare e conservare in un luogo sicuro.

Sposta le chiavi TLS create

Abilita le porte Firewall

Abilita la porta TCP del Firewall (controlla il file config.toml)

  • Wireguard Abilita la porta UDP del Firewall (controlla il file wireguard.toml)

  • V2RAY Abilita la porta TCP del Firewall (controlla il file v2ray.toml)

Abilita il Port Forwarding (per nodi residenziali)

Se il nodo Γ¨ ospitato da casa, assicurarsi di attivare il port forwarding sul router per consentire l'accesso esterno. A tale scopo, accedete alle impostazioni del router e navigate fino ai servizi WAN, quindi aggiungete le seguenti due voci della tabella di inoltro delle porte IPv4:

Last updated