Skip to content

Getting started with experimental CoinGreen network node

Maxim Samsonov edited this page Feb 4, 2022 · 23 revisions

Setup

  • Ensure that inbound\outbound traffic is allowed for TCP port 34558
  • Install libraries and tools
    • sudo apt-get update
    • sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libevent-dev
    • sudo apt-get install python2
  • Create user coingreen with primary group coingreen

adduser man page

  • Add coingreen user to adm and sudo groups

usermod man page

All further steps shall be executed by coingreen user.

String to be appended to coingreen.conf:
rpcauth=coingreen:
59a4dd294f929381e786359f22df686323963049e88cebf73f2458efa2c3a4287d2299e5efb7f162417b2116960a33
Your password:
qpLFWOKWyMI_F69NcP7fl3A0KCXL2lwVjx_ImRYhGYA=
  • The password created will be RPC user password for user coingreen and can be used for coingreen-cli utility. coingreen-cli and coingreen-tx are bitcoing command-line utilities adopted for coingreen You may find relevant help and manuals elsewhere.

This reference may be a good starting point: bitcoin-cli help

  • Open coingreen configuration file at conf/coingreen.conf, append string to configuration file as suggested above.
  • Uncomment and set the following properties in configuration file: bind=<node ip address>:34558
    If you are using AWS pls note that it provides two IPv4 addresses - external and internal. Internal address shall be used in this property. If IPv6 address is used [address]:port notation shall be applied. THe picture below illustrates ccorrect address binding configuration for Amazon LightSail node.

address binding

  • Configure connections to two existing nodes. conf/coingreen.conf includes detailed explanation how to do it using connect or addnode commands. If you are configuring or maintaining several nodes please avoid circular references.

Startup

Distribution package includes two sample files that show how to start CoinGreen network node:

  • start.sh - simple one-liner shell script
/home/coingreen/coingreend -conf=/home/coingreen/conf/coingreen.conf -datadir=/home/coingreen/data \
                           -daemon -disablewallet=true -txindex=0

Note that this script will start the node as daemon (background process, with no wallet and the node will be ligthweighted, without full transaction index). If you want to run full node please change txindex=0 to txindex=1 (the explanation)

  • coingreen.service - systemd control file located at service folder

systemd explanation

You can check node status using coingreen-cli utility Please replace rpcpassword in the sample picture with your unique password generated by util/rpcuser.py coingreen

checking node status

Clone this wiki locally