Coder Social home page Coder Social logo

torus-economy / torus-core Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6.42 MB

Torus core blockchain

Home Page: https://explorer.torus.cc

License: MIT License

Dockerfile 0.08% Python 1.37% Shell 1.02% Roff 0.39% Makefile 13.03% NSIS 0.18% C++ 76.33% C 1.06% HTML 1.54% CSS 0.03% M4 2.46% Objective-C 0.03% Objective-C++ 0.11% Assembly 1.56% QMake 0.82%
c-plus-plus cryptocurrency crypto blockchain proof-of-stake proof-of-work torus-cli torus torus-core torusd

torus-core's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.