HOW TO: Compile iond Daemon from source

wagerrsupport edited this page Sep 15, 2018 · 8 revisions

QT Build - Linux

Follow the guide to install the ION QT wallet on Linux Ubuntu

(Tested on Ubuntu 16.04) VM, 2GB RAM, 20GB HDD)

Open a Terminal session remotely or via the Terminal shortcut on a VPS

Expand the swapfile (For systems under 1Gb RAM)

fallocate -l 4G /swapfile chmod 600 /swapfile mkswap /swapfile swapon /swapfile swapon -s echo "/swapfile none swap sw 0 0" >> /etc/fstab

Install required dependencies

apt-get install build-essential libtool automake autotools-dev autoconf pkg-config libssl-dev libevent-dev libboost-all-dev git

Add Bitcoin Source

add-apt-repository ppa:bitcoin/bitcoin

Update the computer

apt-get update

Install libdb4.8 dependencies

apt-get install libdb4.8-dev libdb4.8++-dev

Install libminiupnpc-dev dependencies

apt-get install libminiupnpc-dev

Clone the ionomy Github repository to your computer

Make sure to check for the latest version

git clone https://github.com/ionomy/ion/releases/tag/3.0.5 ion

Change to the ION directory

cd -ion-

Run Autogen

./autogen.sh

Run configure

./configure

Compile the Daemon wallet

make

Depending on your system speed this could take some time. The ION Daemon will be located at: ion/src/iond

Finished

When complete, the Daemon node install is finished. The Blockchain will need to sync fully before you are able to send or receive coins.

Start the Daemon

Enter ./iond & to start the iond instance.

Important Extra information

Make sure to back up you wallet.dat AND private keys upon first use or when creating new wallet addresses.

Please note that any Zerocoin (xION) minted with be stored in the wallet.dat file and is not recorded externally on the Blockchain.

Sample Default ioncoin.conf with staking enabled

rpcuser=
rpcpassword=
rpcallowip=127.0.0.1
daemon=1
server=1
debug=1
staking=1
bind=ip::12700

Sample ioncoin.conf with Testnet enabled

testnet=1 rpcuser=user
rpcpassword=pass
listen=0
server=1
daemon=1
logtimestamps=1
maxconnections=256
masternode=1
externalip=158.69.120.138
masternodeaddr=158.69.120.138:27170
masternodeprivkey=93ULydF2EviXyytqhuebWVQdBJRq6y17q9wr4YerqPw4ne9MQpX

Sample ioncoin.conf with enabled masternode:

rpcuser=
rpcpassword=
rpcallowip=127.0.0.1
daemon=1
server=1
debug=1
staking=1
bind=ip::12700
masternode=1
masternodeaddr=:12700
masternodeprivkey=

Sample Masternode.conf

The masternode.conf format consists of a space separated text file. Each line consisting of an alias (Your Masternodes name), IP address followed by port, masternode genkey, collateral output transaction id and finally, collateral output index then with optional donation address and donation percentage (the latter two should be in format "address:percentage").

*Donation addresses are other addresses you can send the rewards to (rather than going straight to the Masternode collateral address, and percentages of each reward).

alias ipaddress:port masternode_private_key collateral_output collateral_output_index donationin_address:donation_percentage

Example

mn1 123.123.321.321:27170 93ULydF2EviXyytqhuebWVQdBJRq6y17q9wr4YerqPw4ne9MQpX 805f8fb240e6ec7efbba6d3df2aca154182455c37a79ac41bfcf68b91477069c 1

<Alias Name> <your ip>:27170 <masternode.key> <output hash> <outpid id>

Zerocoin disabling

Add to conf file to disable Zerocoin by doing sudo nano ion.conf

enablezeromint=0 zeromintpercentage=0

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.