Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time

get nvm

curl -o- | bash
. ~/.bashrc
nvm install 8
nvm use 8

get golang

wget https://dl/
# sudo tar xvaf go1.10.3.linux-amd64.tar.gz -C /usr/local/

get pool src

git clone
cd open-aquachain-pool

build backend

This compiles to ./build/bin/open-aquachain-pool, i like to rename it shorter after it builds.


build frontend

cd www

npm install -g bower ember-cli

npm install

bower install


package dist folder

tar czpf dist.tgz dist

send to your server (replace

scp dist.tgz root@
scp ../build/bin/open-aquachain-pool root@

edit config files

yes, make two config files. one for 'unlocking and payouts' and one for 'everything else'

install redis-server

sudo apt-get update && sudo apt-get install -y redis-server

iptables (firewall)

see attached files for iptables script

caddy server (reverse proxy)

Download here:

see attached files for CaddyFile

you must change the first line where it says a domain name.

the domain name must resolve, you will get automatic SSL certificate.

Putting it all together

(as root)

adduser --system caddy
adduser --system pool
adduser --system aquachain
cp caddy /usr/local/bin/caddy
cp aquachain /usr/local/bin/aquachain
cp open-aquachain-pool /usr/local/bin/aquapool
cp pool.json /home/pool/pool.json
cp payouts.json /home/pool/payouts.json

crontabs for reboots

crontab -u caddy -e

Put this line: @reboot /usr/local/bin/caddy -conf /home/caddy/CaddyFile

crontab -u aquachain -e

Put this line: @reboot tmux new-session -d -s tmux "$HOME/start.bash"

crontab -u pool -e

Put this line: @reboot tmux new-session -d -s tmux "$HOME/start.bash"


aquachain: /usr/local/bin/aquachain -rpc

pool: /usr/local/bin/aquapool /home/pool/pool.json 2>>/home/pool/miner.log 1>>/home/pool/miner.log


cross fingers

if it works, add your pool api to