Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
362 lines (260 sloc) 9.56 KB

Iquidus Explorer for VerusCoin


A VPS with 4GB of RAM, anything above 20GB SSD storage and 2 CPU cores is the absolute minimum requirement. Start following the guide while logged in as root.

Operating System

This guide is tailored to and tested on Debian 9 "Stretch". Before starting, please install the latest updates:

apt update
apt -y upgrade


The packages required in order to compile a VerusCoin wallet can be installed like this:

apt -y install build-essential git pkg-config libc6-dev m4 g++-multilib autoconf \
                   libtool ncurses-dev unzip git python python-zmq zlib1g-dev wget \
                   libcurl4-openssl-dev bsdmainutils automake curl

Create a useraccount for the wallet. Switch to that account.

useradd -m -d /home/veruscoin -s /bin/bash veruscoin
su - veruscoin

Now, clone the source tree and build the binaries:

git clone
cd VerusCoin
./zcutil/ -j$(nproc)

After that is done, create a ~/bin directory and copy over the binaries. Strip the debug symbols.

mkdir ~/bin
cp src/komodod src/komodo-cli src/komodo-tx ~/bin
strip ~/bin/komodo*

Now, lets create the data directory. Then, get the bootstrap and unpack it there.

mkdir -p ~/.komodo/VRSC
cd ~/.komodo/VRSC
tar zxf VRSC-bootstrap.tar.gz
rm VRSC-bootstrap.tar.gz

Create ~/.komodo/VRSC/VRSC.conf and include the parameters listed below, adapt the ones that need adaption. A resonably secure rpcpassword can be generated using this command: cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1.


# wallet is not needed

# logging related options

# how many blocks to check on startup

# indexing options

# make sure ipv4 & ipv6 is used

# rpc settings

# if a peer jacks up more than 25 times in a row, ban it

# make sure gen is off

# addnodes

For proper Iquidus operation, txindex=1 is crucial. Afterwards, start the daemon and let it sync the small rest of the blockchain:

komodod -ac_name=VRSC -ac_algo=verushash -ac_cc=1 -ac_veruspos=50 -ac_supply=0 -ac_eras=3 \
-ac_reward=0,38400000000,2400000000 -ac_halving=1,43200,1051920 -ac_decay=100000000,0,0 -ac_end=10080,226080,0 \
-ac_timelockgte=19200000000 -ac_timeunlockfrom=129600 -ac_timeunlockto=1180800 -addnode= \
-addnode= -daemon

To check the status and know when the initial sync has been completed, issue

komodo-cli -ac_name=VRSC getinfo

When it has synced up to height, the blocks and longestchain values will be at par. Additionally, you should verify against the explorer that you are in fact not on a fork. While we wait for this to happen, lets continue.

NodeJS 8 & Prerequisites

Iquidus Explorer will need Node v8 (v10 won't work) to run.

curl -sL | bash -
apt update; apt -y upgrade
apt -y install nodejs
npm -g install pm2

Iquidus Installation

Create a new user account for the explorer and switch to it.

useradd -m -d /home/veruscoin-explorer -s /bin/bash veruscoin-explorer
su - veruscoin-explorer

Now, check out the Veruscoin Iquidus repo and install it:

git clone
cd explorer
npm install
cp settings.json.template settings.json

Iquidus Configuration

See for the list of install instructions of Iquidus. The Genesis block/tx values are:

"genesis_block": "027e3758c3a65b12aa1046462b486d0a63bfa1beae327897f56c5cfb7daaae71",
"genesis_tx": "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",

You may want to disable the twitter and markets display. You should only bind Iquidus to loopback and proxy this to the world with nginx.

Make sure the VerusCoin wallet is running. You should now be able to start Iquidus.

cd /home/veruscoin-explorer/explorer; pm2 start --name explorer bin/instance

Display the logs with this command:

pm2 log explorer

Initial sync will take up to 3 hours to complete. Start it like this:

cd /home/veruscoin-explorer/explorer && node scripts/sync.js index reindex

Further considerations

None of the topics below is strictly necessary, but most of them are recommended.

Improving SSH security

If you remember the good old rand=4; // chosen by fair dice roll comic, you're probably doing this anyways. If you don't go google the comic, you might have missed a laugh there!

As root, generate a proper /etc/ssh/moduli like this:

ssh-keygen -G "/root/moduli.candidates" -b 4096
mv /etc/ssh/moduli /etc/ssh/moduli.old
ssh-keygen -T /etc/ssh/moduli -f "/root/module.candidates"
rm "/root/moduli.candidates"

Add the recommended changes from to /etc/ssh/sshd_config, also make sure that PermitRootLogin is at least set to without-password. Then remove and re-generate your host keys like this:

cd /etc/ssh
rm ssh_host_*key*
ssh-keygen -t ed25519 -f ssh_host_ed25519_key < /dev/null
ssh-keygen -t rsa -b 4096 -f ssh_host_rsa_key < /dev/null

To finish, restart the ssh server:

/etc/init.d/sshd restart

Enable logrotate

As root user, create a file called /etc/logrotate.d/veruscoin with these contents:

  rotate 14

Autostart using cron

Switch to the veruscoin user. Edit the crontab using crontab -e and include the lines below:

@reboot /home/veruscoin/bin/komodod -ac_name=VRSC -ac_algo=verushash -ac_cc=1 -ac_veruspos=50 -ac_supply=0 -ac_eras=3 -ac_reward=0,38400000000,2400000000 -ac_halving=1,43200,1051920 -ac_decay=100000000,0,0 -ac_end=10080,226080,0 -ac_timelockgte=19200000000 -ac_timeunlockfrom=129600 -ac_timeunlockto=1180800 -addnode= -addnode= -daemon 1>/dev/null 2>&1

Simplify cli usage

Switch to the veruscoin user. Create a file called /home/veruscoin/bin/veruscoind that looks like this:

cd /home/veruscoin/.komodo/VRSC
/home/veruscoin/bin/komodod -ac_name=VRSC -ac_algo=verushash -ac_cc=1 -ac_veruspos=50 -ac_supply=0 -ac_eras=3 -ac_reward=0,38400000000,2400000000 -ac_halving=1,43200,1051920 -ac_decay=100000000,0,0 -ac_end=10080,226080,0 -ac_timelockgte=19200000000 -ac_timeunlockfrom=129600 -ac_timeunlockto=1180800 -addnode= -addnode= ${@}
cd "${OLDPWD}"

Create another file called /home/veruscoin/bin/veruscoin-cli that looks like this:

/home/veruscoin/bin/komodo-cli -ac_name=VRSC ${@}

Make both files executable:

chmod +x /home/veruscoin/bin/veruscoin*

From now on, any time you would have to use the huge komodod or komodo-cli commands, you can just use them as shown below:

veruscoind -daemon 1>/dev/null 2>&1
veruscoin-cli addnode onetry

Increase open files limit

Add this to your /etc/security/limits.conf:

* soft nofile 1048576
* hard nofile 1048576

Reboot to activate the changes. Alternatively you can make sure all running processes are restarted from within a shell that has been launched after the above changes were put in place.

Networking optimizations

If your pool is expected to receive a lot of load, consider implementing below changes, all as root:

Enable the tcp_bbr kernel module:

modprobe tcp_bbr
echo tcp_bbr >> /etc/modules

Edit your /etc/sysctl.conf to include below settings:

net.core.rmem_default = 1048576
net.core.wmem_default = 1048576
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.udp_rmem_min = 16384
net.ipv4.udp_wmem_min = 16384
net.core.netdev_max_backlog = 262144
net.ipv4.tcp_max_orphans = 262144
net.ipv4.tcp_max_syn_backlog = 262144
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_max_tw_buckets = 2000000
net.ipv4.ip_local_port_range = 16001 65530
net.core.somaxconn = 20480
net.ipv4.tcp_low_latency = 1
net.ipv4.tcp_slow_start_after_idle = 0
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_limit_output_bytes = 131072

Run below command to activate the changes, alternatively reboot the machine:

sysctl -p /etc/sysctl.conf

Change swapping behaviour

If your system has a lot of RAM, you can change the swapping behaviour to only swap when necessary. Edit /etc/sysctl.conf to include this setting:


The range is 1-100. The lower the number, the later the system will start swapping stuff out. Run below command to activate the change, alternatively reboot the machine:

sysctl -p /etc/sysctl.conf

Install molly-guard

As a last sanity check before reboots, molly-guard will prompt you for the hostname of the system you're about to reboot. Install it like this:

apt -y install molly-guard

Check /etc/molly-guard/rc for more options.