Hi, today I will make small hints about the XGT chain how to use it easier.
1. Compiling
We recommend using Ubuntu 20.04 and do not make any changes to Rakefile
List of commands :
apt update
apt-get install -y \
autoconf \
automake \
cmake \
g++ \
git \
libbz2-dev \
libsnappy-dev \
libssl-dev \
libtool \
make \
pkg-config \
python3 \
python3-jinja2 \
scrypt \
dnsutils \
ccache \
libboost-all-dev \
build-essential \
curl \
zlib1g-dev \
libreadline-dev \
libyaml-dev \
libxml2-dev \
libxslt-dev \
screen \
ruby-dev
when all depencies are installed Use:
screen -S xgt
git clone https://github.com/xgt-network/xgt.git
git clone https://github.com/xgt-network/xgt-ruby.git ../xgt-ruby
cd xgt
git checkout master
gem install xgt-ruby
rake configure
rake make
You can also run THREAD_COUNT=* rake make (* amount of threads used in compilation each need 2 GB ram!!)
By first command screen -S xgt you will attach a screen that can be closed with ctrl+a+d and easily come back with screen -rd xgt when you need.
You will be also able to close ssh if You are using VPS and node will work all time on attached screen
2.Start to sync
After xgtd will be installed you can start to sync but before You do it export details about Your wallet and keys as shown before type in terminal:
export XGT_WALLET=Your wallet address
Hit ENTER and
export XGT_RECOVERY_PRIVATE_KEY=Your xgt recovery private key
Hit ENTER and
export XGT_WITNESS_PRIVATE_KEY=Your xgt recovery private key
HIT ENTER and
export XGT_SEED_HOST=68.129.31.2:2001,xgt.rag.pub:2001,98.33.76.100:2001,45.138.27.42:2001
Hit ENTER and You are ready to go
Now to start sync run the command:
MINING_DISABLED=TRUE rake run
Your node will start to sync
3.Mining
When you will be synced up to date:
click ctrl+c twice to stop node
then to start mining use the command :
rake run MINING_THREADS=amount of threads You want to use
For more questions i will refer to contact us on Discord: https://discord.gg/DD7dj8mhZ6
Tips XGT ONLY :
XGTGmzVNN1ucwYWhSQKUyG5wuaGXvhjzZ25sf41WV6B