- DigitalOcean droplets are our favorites if you are new.
sudo apt-get update
sudo apt-get install python3-pip -ypip3 install --upgrade pip setuptoolssudo apt-get install -y mongodbFor some reason, DigitalOcean droplets, and perhaps other cloud providers, have /dev/random blocking problems. This probably is because they are running many small computers on a single Linux instance and the entropy pool dries up pretty quickly. If this doesn't make sense, install Haveged and don't worry about it.
If it does, libsodium, which is the public-private key cryptography library we use, uses /dev/random with no option to use /dev/urandom. Haveged solves this problem.
sudo apt-get install haveged -y
systemctl start haveged
systemctl enable havegedgit clone https://github.com/Lamden/contracting.git
cd contracting
git fetch
git checkout dev
python3 setup.py develop
cd ~
git clone https://github.com/Lamden/cilantro-enterprise.git
cd cilantro-enterprise
git fetch
git checkout dev-final
python3 setup.py develop
mkdir ~/blocks
mongod --dbpath ~/blocks --logpath ~/logs.log --bind_ip 127.0.0.1 --fork
# cd cilantro-enterprise/scripts
# python3 create_user.py # nolonger needed
nano ~/constitution.json
{
"masternodes": {
"<vk>": "<ip>",
"<vk>": "<ip>"
},
"delegates": {
"<vk>": "<ip>",
"<vk>": "<ip>"
},
}
Ctrl+X, save the file.
cil start <masternode | delegate> -k <sk in hex format>
cil join <masternode | delegate> -k <sk in hex format> -m <ip address of any online masternode>