Skip to content

torus-economy/torus-core

Repository files navigation

TORUS

Ticker: TRS
Proof of Stake: 5% yearly rate
Min. stake age: 8 hours
Block time: 120 sec

Official block explorer: explorer.torus.cc


Run a node

Torus full node can be run using a prebuild Docker image. This is recommended as the image is under the active development.
Image tagged as latest will always match the master branch. If you want to run a stable release, use the image tag that corresponds to the official release - e.g. torusd:1.0.0.

Pull image:

docker pull ghcr.io/torus-economy/torusd:latest

Run container:

docker run \
    -d \
    -p 24111:24111 \
    -v /home/$USER/.TORUS:/root/.TORUS \
    --name TORUSd \
    --restart=always \
    ghcr.io/torus-economy/torusd:latest

or with RPC port enabled:

docker run \
    -d \
    -p 24111:24111 \
    -p 24112:24112 \
    -v /home/$USER/.TORUS:/root/.TORUS \
    --name TORUSd \
    --restart=always \
    ghcr.io/torus-economy/torusd:latest

Make sure to have a valid TORUS.conf file in /home/$USER/.TORUS/TORUS.conf or in any other path that was specified. For more information about configuration file see example. Docker container must always have torusd process running in the foreground, so do not include daemon=1 in TORUS.conf configuration file when running within Docker. In case daemon=1 is included, the Docker process will exit immediately.

Minimum TORUS.conf configuration file should include the following:

rpcuser=rpc
rpcpassword=password123
server=1
listen=1

docker-compose

This could also be achived by running a docker-compose script. Preconfigured docker-compose script with corresponding TORUS.conf configuration file can be found in contrib folder. For security reasons, make sure to change rpcuser and rpcpassword default values. Afterwards, the script can be run:

cd contrib/docker-compose
docker-compose up -d

TORUSd daemon commands in Docker

If TORUSd is running in Docker, daemon commands can be run in the following way:

docker exec TORUSd ./TORUSd <command> <params>

For example, to get basic info and staking info:

docker exec TORUSd ./TORUSd getinfo
docker exec TORUSd ./TORUSd getstakinginfo

Seed nodes

Official seed nodes:

  • 154.56.63.68
  • 154.56.63.66
  • 153.92.223.18
  • 185.150.117.203
  • 185.150.117.219
  • 84.32.188.71

Official DNS seed servers:

  • dnsseed1.torus.cc
  • dnsseed2.torus.cc
  • dnsseed3.torus.cc

Build from source

In order to build from source, check out docs. Specific dependencies can be found here.

Release notes

To see release notes check out this file.